What type of data is the field? In one example, you compare the value of "field" with a NUMBERIC value of 1, and in another you compare it with the string "1", that is, with one character string containing the text "1". These two are not necessarily the same . [Edit: I forgot about MySql ENUM, it was a long time ago since I actively used MySql, so for this particular case, what KennyTM said =)]
Without looking at the dataset that you are using and defining the table (for viewing the data types), as well as the specific version of MySql that you are using, I cannot give a better answer. But, it comes down to the fact that the two queries that you execute, while superficially the same, are actually different.
source share