MySQL will try and coerce data to a comparable type. I this case it will try and convert strings to numbers. Any strings that it can't make sense of default to 0.
Do
select 0 = 'banana'
to see this in action.
Making your query compare to '0'
instead of 0
would fix it.