select * from inventory.home_picture_types hpt
left join inventory.home_pictures hp on hp.home_picture_type_id = hpt.id
where hp.id IS NULL;
This query works on vagrant/homestead, and returns the home_picture_types with NULL home_picture values (correct, I'm just trying to get the home_picture_types).
However, when I run this query on CentOS Maria DB, it returns no results at all. It's as though the LEFT JOIN is an INNER JOIN.
I have written this query 700 different ways, and nothing is helping. I checked the sql_mode and it's set to '' on both databases.... Any ideas why it works on one and not the other??