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:
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: