in reply to DBD::mysql::st execute failed: You have an error in your SQL syntax;
What part of the error message do you have a problem with? I think it is fairly explicit.
As a first step, I suggest inpecting the SQL statement in your script and checking it for syntax errors, especially near every ")" of that syntax.
Note that, unlike Perl, SQL does not allow trailing commas in lists.
|
|---|