title: sqlite3.OperationalError: near "%": syntax error?
body: <p>I'm receiving the error: <code>sqlite3.OperationalError: near "%": syntax error</code>
  when I try to run the following code. 
      import sqlite3</p>
  
  <pre><code>def getFromDB(DBname,table, url):
      conn = sqlite3.connect(DBname)
      cursor = conn.cursor()
      sql = '''SELECT * FROM %s WHERE URL=%s'''
      stuff = cursor.execute(sql, (table,url))
      stuff = stuff.fetchall()
      return stuff
  
  url = 'http://www.examplesite.com/'
  getFromDB('AuthorData.sqlite','forbes',url)
  </code></pre>
  
  <p>I'm using parameters in my <code>SQL</code> query using <code>%s</code>. Thanks for the help!</p>