title: TypeError: execute() takes at most 3 arguments (11 given)
body: <p>I am trying to create a SignUp page using Tornado, Anaconda, MySQLdb connector.
  So I have 8 fields in the form and my Signuphandler has the logic to insert the person's input into mysql database.</p>
  
  <p>I searched and followed the documentation and other resources online and -
  I tried the following </p>
  
  <p>Initially I was getting this error  <strong>query = query % tuple([db.literal(item) for item in args]) TypeError: not enough arguments for format string</strong>  for 1) and 2)</p>
  
  <p>1)</p>
  
  <pre><code>cursor.execute("INSERT INTO user_table (firstName, lastName, a, b, c, d, e, f, g) VALUES (%s, %s,    %s, %s, %s, %s, %s, %s, %s, %s)",(firstname, lastname, a, b, c, d, e, f, g,))
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>cursor.execute("INSERT INTO user_table (firstName, lastName, a, b, c, d, e, f, g) VALUES (%s, %s,    %s, %s, %s, %s, %s, %s, %s, %s)", [(firstname, lastname, a, b, c, d, e, f, g,)])
  </code></pre>
  
  <p>So I googled and removed (), Now I am getting <strong>TypeError: execute() takes at most 3 arguments (11 given)</strong> error</p>
  
  <p>3)</p>
  
  <pre><code>cursor.execute("INSERT INTO user_table (firstName, lastName, a, b, c, d, e, f, g) VALUES (%s, %s,    %s, %s, %s, %s, %s, %s, %s, %s)", firstname, lastname, a, b, c, d, e, f, g,)
  </code></pre>
  
  <p>4)Followed this <a href="https://stackoverflow.com/questions/21518498/python-3-arguments-6-given-error">python 3 arguments 6 given error</a></p>
  
  <pre><code>cursor.execute("INSERT INTO user_table (firstName, lastName, a, b, c, d, e, f, g) VALUES (%s, %s,     %s, %s, %s, %s, %s, %s, %s, %s)", str(firstname), str(lastname), str(a), str(b), str(c), str(d), str(e), str(f), str(g),)
  </code></pre>
  
  <p>What is going wrong here? Can someone pls help me..</p>
  
  <p>Thanks..</p>