ho provato ma non escono in ordine!

e con una subquery

tipo

codice:
SELECT DISTINCT id_post,title,post.testo as text,postby
FROM
        (SELECT post.*
         FROM post JOIN reply ON post.id_post=reply.post  
         WHERE thread ='$id_thread'ORDER BY reply.data DESC)
solo che mi da errore:


Querry get_post fallita : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( SELECT post.*FROM post JOIN reply ON post.id_post=reply.post


come si fanno le subquery..nel manuale questa sezione è trattata malissimo