I have 3 tables, cars, cars_owner and owner. I want to have the complete list of cars, those that do have owners and those that don't.
When a car has an owner, I must have the data of the owner.
Wrong query 1 (selects ownerless cars out):
SELECT * FROM car
LEFT JOIN cars_owner ON ...
INNER JOIN owner ON ...
Wrong query 2 (selects cars_owner relations without owners too):
SELECT * FROM car
LEFT JOIN cars_owner ON ...
LEFT JOIN owner ON ...
How do I left join a table with an inner join in MySQL?