You attempted to compare values of incompatible data types. For example, comparing a string and a numeric value.
To correct this error
-
Make sure the data types match when performing comparisons.
-
Cast one of the values to the data type of the other, and try the comparison again.