Override "var=NULL" in WHERE section to "var IS NULL"