Topic: News query-question
I've been working on a news-function (yeah, me too :)). There's no problem making one with two querys, but can it be done using only one?
SELECT t.*, p.message FROM topics AS t, posts AS p WHERE p.topic_id=t.id
This query obviously returns one row for each post in the topic. Is there a way to prevent this from happening? I only want the first post for each topic, not all of them.