Let's say we have a record in table 'orders' with id=1. This query:
SELECT * FROM 'orders' WHERE id = 'abc1'
won't return mentioned record. But this query:
SELECT * FROM 'orders' WHERE id = '1abc'
will return the record with id=1. This is because when MySQL converts string to number 'abc1' becomes 0, but '1abc' becomes 1. Is there a nice way to make MySQL search strictly for records with id from query, i.e. not return the record with id=1 in both mentioned cases?