$query = "SELECT DISTINCT phpbb_topics.topic_id,phpbb_topics.topic_title,phpbb_topics.topic_replies,phpbb_posts.post_time,phpbb_posts.post_id FROM phpbb_topics INNER JOIN phpbb_posts ON (phpbb_topics.topic_id = phpbb_posts.topic_id) order by post_time desc limit 5";