Quote:
Originally Posted by Logician
ok let's change the query like this:
SELECT t.threadid, t.title, t.firstpostid, t.lastpost, f.title as forumtitle, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, p.pagetext
FROM thread t
LEFT JOIN post p ON p.postid = t.firstpostid
LEFT JOIN forum f ON f.forumid = t.forumid
WHERE t.forumid
IN ( 108, 109 )
AND t.open = '1'
AND t.visible = '1'
ORDER BY t.dateline DESC
LIMIT 0 , 10
now $WQfield[title] gives you thread title and $WQfield[forumtitle] gives you forum title. 
|
You have a typo above.
LEFT JOIN forum f ON f.forumid = t.forumidpostid
Should be:
LEFT JOIN forum f ON f.forumid = t.forumid
After fixing the typo it works great, thanks!