Oi
Right to the problem.
SELECT *,t.id AS threadid FROM threads t
LEFT JOIN players p on p.id = t.last_poster
WHERE t.boardid = $boardid
I have two fields in threads called posterid
and lastposterid
. Which are the IDs of the thread starter / last poster. What I want to do is to get their names from players table.
But how?