18.06.2014, 17:17
You've used a combination of UPDATE and INSERT clause, read the mysql documentations for the correct syntax of UPDATE clause.
About the error, you need a closed paranthesis before the semicolon.
About the error, you need a closed paranthesis before the semicolon.