How did you solve this problem cause i am in the same bother, with the same error. exept mine is this:
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '20688', '04c327436f', '',
this is the error identity which i found on the MySql website : #
Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR)
Message: %s near '%s' at line %d
but still i dont know what it means.