Per confrontare NULL valori devi usare IS NULL predicato, in questo modo:
SELECT table1.*, table2.*
FROM table1
LEFT JOIN table2 ON table1.id=table2.id
WHERE table2.surname IS NULL
Per confrontare NULL valori devi usare IS NULL predicato, in questo modo:
SELECT table1.*, table2.*
FROM table1
LEFT JOIN table2 ON table1.id=table2.id
WHERE table2.surname IS NULL