SELECT e.`text`, u.`name` FROM `events` e, `users` u, `friends` f WHERE f.`user_one` = {$id} AND e.`user_id` = f.`user_two` AND u.`id` = f.`user_two` ORDER BY e.`id` ASC;