+ VALUES (%s, %s, s, %s, %s, %s, %s, %s, %s, %s, %s, %s);""", Hehe, I had added this in an earlier commit when I added msg_id column but I put a 's' instead of '%s' :) Fixed and pushed.