I am simply trying to increment field value by 1. It spit the error that had to do something with long value of object sequence_id
db.execute('SELECT id FROM sstudio_queues_sequence')
sequence_id = db.fetchone()[0]
sequence_id = sequence_id + 1
db.execute("UPDATE sstudio_queues_sequence SET id=%s", (sequence_id))