I've got a MySQL query which uses IN clause.
SELECT SomeColumn
FROM SomeTable
WHERE SomeOtherColumn IN ('Some', 'Set')
However, I've stumbled upon a case, where SomeOtherColumn has a value of 0, and MySQL evaluates the where clause as TRUE:
SELECT 0 IN ('Some', 'Set')
Evaluates to
1 (TRUE)
MySQL version 5.5.46. Anyone has any idea why it happens so?