Hey. i am writing a forum, and i have this table that marks messages a specific user read:
`read_messages`(`message_id`,`user_id`)
a simplified version of the messages table:
`messages`(`id`,`forum_id`,`author_id`)
now, i want to be able, when retrieving the message data from the database for a given forum, to add a variable that will tell me if the current user has read that message or not. i know how to do this with 2 queries (1st i retrieve all messages, then i check for each of them if the user has read them), but no clue as to how to join them together. any ideas?