title: psycopg2 passing in table name
body: <p>I have the following query</p>
  
  <pre><code>table = "#temp_table"
  cursor.execute("""select * from %s as a """, (table))
  </code></pre>
  
  <p>I keep getting a syntax error at the from stement. Why will this not work?</p>