I have a table that has 20 integer columns and 1 text column named \'foo\'
If I run query:
SELECT * from table_name where foo is NULL
I also ran into this error when I was using Dapper and forgot to input a parameterized value.
To fix I had to ensure that the object passed in as a parameter had properties matching the parameterised values in the SQL string.