I'm creating a mysql statement that uses a left join but need to exclude a duplicate field from the second table. Is there an easy way to do this?
My query looks like this:
SELECT * FROM profiles LEFT JOIN login_users ON profiles.user_id=login_users.user_id WHERE profiles .user_id={$user_id}
Both the profiles and login_users table have a 'gender' field but I only want the 'gender' field from the profile table.