title: MySQL query cause error: ProgrammingError: Wrong number of arguments during string formatting
body: <pre><code>    wquery = """UPDATE `cin`.`flags` SET `flag`='%s', `update_time`='%d' WHERE `name`='%s' AND `lockid`='%s'"""
      cursor.execute(wquery, (pic_bin, update_time, cname, lockid,))
      cnx.commit()
  </code></pre>
  
  <p>This code cause : ProgrammingError: Wrong number of arguments during string formatting</p>
  
  <p>tried many way but can't find solution... :(</p>
  
  <p>Any ideas ?</p>