sqlite3.OperationalError: near "1": syntax error code example
Example: sqlite3.OperationalError: near "AND": syntax error python
In [156]: sql
Out[156]: "update foo set is_processed=1 where bar='don't look now'"
In [156]: sql
Out[156]: "update foo set is_processed=1 where bar='don't look now'"