I have a table Types that has the following columns: ID, Name, Type. The table is filled with about 300 rows. One of the rows:
ID Name Type
------------------
1 BMW S 1000 RR
The following query returns this row:
SELECT * FROM Types WHERE Name = 'BMW'
However, the following query returns nothing:
SELECT * FROM Types WHERE Type = 'S 1000 RR'
There are no extra spaces in the Type, and the data types of Name and Type are exactly the same (varchar 255, utf8_unicode_ci). What can possibly cause this?
I am using MySQL, InnoDB. Using phpMyAdmin I get the exact same results, so no typo's in column names...