id = ['13364', '13365'];
ids = ','.join(id);
cursor.execute("UPDATE articles SET sticky=0 WHERE id IN (%s)", ids);
ids = "','".join(vip_id);
cursor.execute("UPDATE articles SET sticky=0 WHERE id IN ('%s')", ids);
ids = ', '.join(vip_id);
cursor.execute('UPDATE articles SET sticky=0 WHERE id IN (%s)' % (ids));