PHP expert |
|
Die 'forumposts.date = forumtopics.date' gaat nooit werken.
Dit moet volgens mij helemaal niet met joins.
Ik zou eerder zoiets doen:
SELECT forumtopics.id as id, forumtopics.titel as titel FROM forumtopics, forumposts WHERE forumposts.topic_id = forumtopics.id ORDER BY forumposts.date DESC LIMIT 10
SELECT forumtopics .id as id , forumtopics .titel as titel FROM forumtopics , forumposts WHERE forumposts .topic_id = forumtopics .id ORDER BY forumposts .date DESC LIMIT 10
|