Column ‘user_id’ in field list is ambiguous

It means that both tables in the query have the column user_id.

You need to specify which one you want to get in the SELECT statement like SELECT username, image, re.user_id

Leave a Comment