I was doing some MySQL test queries, and realized that comparing a string column with 0 (as a number) gives TRUE!
0
TRUE
select \'string\'
if you want to fix it you can compare two strings:
select 'string' = convert(0,char) as res --- res = 0