I have a mysql join and for someone reason its returning duplicate fields for image and firstname and lastname. Like it’s not joining right.
Here is the SQL
SELECT a.follow_id, a.user_id, a.following, b.firstname, b.lastname, c.firstname, c.lastname, b.image, c.image
FROM followers a
LEFT JOIN candidates b ON a.following = b.user_id
LEFT JOIN donors c On a.following = c.user_id
WHERE a.user_id = 222
LIMIT 9
Both candidates and donors have a firstname and lastname and image, so I need to get those fields, but not duplicate the fields.
My Results

Can someone please tell me what I’m doing wrong?
Thanks in advance.
I’m not sure i’m understand your problem correctly.