title: Python Postgresql query with text string
body: <p>In PgAdmin, I can do the following query successfully:</p>
  <pre><code>select * from &quot;Faces&quot; where &quot;Face_Name&quot; = 'Alex'
  </code></pre>
  <p>However, when I try to do the exact same query in python, I get endless syntax errors.
  I am trying to write the line like this:</p>
  <pre><code>cursor.execute('SELECT * from &quot;Faces&quot; where (&quot;Face_Name&quot; = 'Alex')
  </code></pre>
  <p>I understand the table and column names need to be in double quotes, and the whole query needs to be in single quotes.        Also seems the string (in this case 'Alex') that I am searching for needs to be in single quotes.</p>
  <p>How do I put all this together into a single line?</p>