You used double-quotes when inserting the constant value into the query, but the rest of the syntax is using single-quotes. Thus the name of your constant, along with its quotes, is being sent literally to the query. I'm surprised MySQL didn't croak on it.
Bookmarks