I'm having problems understanding the MYSQL join syntax. I can't seem to manipulate it for my purpose. I have had to use work arounds for months which have resulted in extra queries just for retrieving one extra column.
Scenario: I have two tables..
Table.Stories - containing stories and the user ID of which whom added it.
id, story, userid
Table.Users - containing user details and the users ID
id, username
I'd like to retrieve the stories table including the users id along with a new column (which is generated on the fly I guess) called username which holds the corresponding username from Table.Users.
I'm guessing I would use a mix of the AS and LEFT JOIN syntax. But I really don't know anymore..