PDA

View Full Version : bad query latest posts


sabret00the
07-23-2004, 04:51 PM
why won't this query work
SELECT thread.lastpost,thread.title,thread.lastposter,use r.userid,thread.threadid,thread.forumid,thread.ico nid,forum.title AS ftitle,
FROM thread
LEFT JOIN forum ON (forum.forumid = thread.forumid)
LEFT JOIN user ON (user.username = thread.postusername)
WHERE thread.forumid NOT IN (20,17,18,74,95)
ORDER BY thread.lastpost desc

i'm basically trying to grab a list of the most recently replied to thread

Dean C
07-23-2004, 05:59 PM
threa d.forumid


You got a big gap perhaps :)? What error does it give anyway, always describe errors when trying to get help! ;)

sabret00the
07-23-2004, 07:03 PM
oops sorry, but managed to fix it :) thanks for your help anyway dean :)

Nutz
08-14-2004, 08:49 AM
I could do with something like tis, care to share :-)

sabret00the
08-14-2004, 09:16 AM
tbh i ended using this https://vborg.vbsupport.ru/showthread.php?t=62624&page=1&pp=40 and modding it to suit my needs www.ebslive.com in the process converting it to work on a vB powered page.