title: python mysqldb unable to insert a long string filled with quotes
body: <p>I am trying to do this</p>
  
  <pre><code>cursor.execute("""INSERT INTO my_stats VALUES (%s,%s)""" % (time.strftime('%Y-%m-%d'), info["countries"]))
  </code></pre>
  
  <p>where info["countries'] is a json string like this
  {"US" : 8997, "BG" : 78 ....}</p>
  
  <p>I keep getting syntax error exception from MySQL</p>
  
  <p>I am using Python-MysqlDB</p>