Is MySQL case sensitive?  I don't see anything wrong with the SQL it's complaining about other than that
No need to localize arguments -- they're in the parameter list