Quote:
Originally Posted by Xenon
something like
[sql]
SELECT *
FROM post
INNER JOIN thread USING(threadid)
ORDER BY post.dateline DESC
LIMIT xx[/sql]
|
That seems to work great.
I just have two more questions,
How would I get only one post per thread? So that even if 2 or more posts are from the same thread, (and are technically one of the last xx posts), only one would be returned.
And would it be faster to do 'SELECT * ...' or 'SELECT threadid, title...'
Many thanks
FFMG