Ok... I solved it with your help. The new code is:
Code:
SELECT DISTINCT phpbb_topics.topic_title, phpbb_topics.topic_id FROM phpbb_topics INNER JOIN phpbb_posts ON phpbb_topics.topic_id=phpbb_posts.topic_id ORDER BY -phpbb_posts.post_time LIMIT 3
I know that it doesn't say much for those who do not know what tables I was using. If you are interested in visit phpbb.com and install the forum engine.