the error is occurred because you have a column in your database named 'update'. this is a SQL reserved word used for creating an update query:
UPDATE table
SET name = 'Tom'
WHERE id = 4;
and should be avoided when naming your columns. for a full list of MySQL reserved words, see the following page:
reserved-words.html