Im trying to make a MySQL update statement with python, but I keep getting the "You have an error in your SQL syntax" error, while the statement totally works when I try the query in MySQL workbench. I have no idea what I am doing wrong.

**Code**

```
self.cur.execute('UPDATE UserAction SET count=%s WHERE user=%s AND action=%s)',
                                     (count, id, action))

```

**Full 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 ')' at line 1"*