Hi
I'm making a good ol' forum, and i have three tables, users, threads
and posts. when i query my threads table with a join, i need to access
the users table twice to get the username of the first poster and last
poster. But how? I can only figure out how to get one or the other. Is
my design bad? eg
SELECT TopicID, FirstPostID, LastPostID, Replies, Views, Topic,
username FROM DiscussionThrea ds, users WHERE
DiscussionThrea ds.FirstPostID= users.ID ORDER BY FirstPostDT DESC LIMIT
10
any help appreciated
cheers
dave
I'm making a good ol' forum, and i have three tables, users, threads
and posts. when i query my threads table with a join, i need to access
the users table twice to get the username of the first poster and last
poster. But how? I can only figure out how to get one or the other. Is
my design bad? eg
SELECT TopicID, FirstPostID, LastPostID, Replies, Views, Topic,
username FROM DiscussionThrea ds, users WHERE
DiscussionThrea ds.FirstPostID= users.ID ORDER BY FirstPostDT DESC LIMIT
10
any help appreciated
cheers
dave
Comment