Theory question here:
Why does specifying table.field IS NULL or table.field IS NOT NULL not work on a join condition (left or right join for instance) but only in t
The WHERE clause is evaluated after the JOIN conditions have been processed.
WHERE
JOIN