Original Post
I'm currently writing a forum for a webpage. I have two tables, one with the forum posts and one with the users. The forum table contain two userid's for each post (the sender-of-the-last-answer userid and the original-poster userid) and I want to find out the nick of those userid's with a join query. Currently I'm using SELECT * FROM Eik_Forum LEFT JOIN Eik_Users ON (Eik_Forum.originalid = Eik_Users.id) and with that I can get the nich of the original poster with mysql_fetch_array and $nick = $row['nick'];. But the problem is that I also want to get the nick of the sender of the last answer in the same query. I have no clue how to do that since that would mean that the query would return two colums from the Eik_Users table both called 'nick'. Is it possible to solve that problem? Or do I have to do some redesigning?