Use NULL or NOT NULL for comparing null data. Review your query syntax and correct the error before running your query.
For more information, see Creating Queries.