def insert_subs(self, user_id, sub):
with self.connection:
return self.cursor.execute('INSERT INTO user (subs) VALUES (?) WHERE user_id = ?',(sub, user_id,))
return self.cursor.execute('INSERT INTO user (subs) VALUES (?) WHERE user_id = ?',(sub, user_id,))
sqlite3.OperationalError: near "WHERE": syntax error