Here\'s a strange one:
I can filter on NOT NULLS from SQLite, but not NULLS:
NOT NULLS
NULLS
This works:
SELECT *
The problem could stem from how SQLite handles empty columns. For instance just because a column is empty does not mean it is NULL. Have you tested against ""?
SELECT * FROM project WHERE parent_id = ""
That query might return results.