SELECT forum_thread.id, forum_thread.author, forum_thread.name, forum_thread.forum, forum_thread.isSticky, forum_thread.last_post_TS, members.id, members.first_name, members.last_name FROM forum_thread LEFT JOIN members ON forum_thread.author = members.id ORDER BY forum_thread.isSticky DESC, forum_thread.last_post_TS DESC
But this will not work:
SELECT forum_thread.id, forum_thread.author, forum_thread.name, forum_thread.forum, forum_thread.isSticky, forum_thread.last_post_TS, members.id, members.first_name, members.last_name FROM forum_thread LEFT JOIN members ON forum_thread.author = members.id, forum_thread.forum = 1 ORDER BY forum_thread.isSticky DESC, forum_thread.last_post_TS DESC
I need to so that the forum_thread.forum is equal to 1 AND forum_thread.author is equal to members_.id
Please help. :(


Sign In
Create Account


Back to top









