in reply to Re: DBD::mysql::st execute failed: You have an error in your SQL syntax;
in thread DBD::mysql::st execute failed: You have an error in your SQL syntax;

It's a personal preference, but all you need is RaiseError set to 1 (as you have).
  • Comment on Re^2: DBD::mysql::st execute failed: You have an error in your SQL syntax;