title: Passing string variable to MySQL, fails as tuple
body: <p>Working with a newly purchased RaspberryPi and I am very new to Python/MySQL so please excuse the naive question I am posting.
  I have looked at many Q&amp;A's about this but I cannot seem to get my head around 'why' this is failing. I get error: <em>"must be string or read-only buffer, not tuple"</em>. My variable appears as a string if I test it with TYPE so now I am lost.</p>
  
  <pre><code>import MySQLdb
  import time
  db = MySQLdb.connect(host="localhost", user="user",passwd="easypwd", db="imagepi")
  cursor = db.cursor()
  current_time = time.strftime("%H:%M:%S")
  current_date = time.strftime("%Y-%m-%d")
  filename = (current_time+'.jpg')
  sql = ("""INSERT INTO imagelocator(batch, date, time, filename) VALUES
  ('1001', current_date, current_time, %s)""", filename)
  cursor.execute(sql)
  db.commit()
  db.close()
  </code></pre>
  
  <p>Thanks so much for offering me a little push in the right direction.</p>