SQL: SELECT f.*, p.*, pt.*, t.*, u.* FROM phpbb_topics AS t, phpbb_users AS u, phpbb_posts_text AS pt, phpbb_posts AS p, phpbb_forums AS f WHERE t.forum_id IN (6,11,15,16,24,26) AND t.topic_last_post_id = pt.post_id AND t.topic_last_post_id = p.post_id AND p.post_time