snowboardr
Programmer
I am basicly trying to select posts and grab the category names the post is in (ptid & ptid2) but I can't seem to get my INNER join to work... any suggestions?
Code:
SELECT post.ptid,post.ptid2,post.puid,post.psubject,post.ptype,post.ptime,thread1.tid,thread1.tname,thread2.tid,thread2.tname FROM forumpost as post, thread1 as thread INNER JOIN ON thread1.tid=post.ptid AND thread2.tid=post.ptid WHERE post.puid=2