title: SQL query using %s in Python 3.3
body: <p>I'm trying to retrieve data from a MySQL-database. </p>
  
  <pre><code>A = "James"
  query = ("SELECT * FROM DB.tblusers WHERE UserName = %s ")
  c = mysql.connector.connect(user='root', password='',
                            host='127.0.0.1',
                            database='DB')
  cur1 = c.cursor()
  cur1.execute(query, A)
  </code></pre>
  
  <p>Gives the following error message: </p>
  
  <pre><code>mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' at line 1
  </code></pre>
  
  <p>But the SQL works in the mySQL Workbench. 
  Any ideas?</p>