SELECT SQL_CALC_FOUND_ROWS sf_guard_user.* from rc_friends, sf_guard_user WHERE rc_friends.sfguarduser_id2 = sf_guard_user.id AND rc_friends.sfguarduser_id = 37198 and validate=1 ORDER BY rand() LIMIT 0, 40