What that implies is that your query - that you don't tell us - is trying to compare two items which are not related: for example if the database field you are comparing is DateTime and the value you are trying to compare against is Bool.
A sample would be (assuming you have an integer column called "id" in a table called "myTable":
SELECT * FROM myTable WHERE id=17