title: Syntax error at end of input in PostgreSQL
body: <p>I have used the next SQL statement in both MySQL and PostgreSQL, but it fails in PostgreSQL</p>
  
  <pre><code>db.Query(`SELECT COUNT(*) as N FROM email WHERE address = ?`, email)
  </code></pre>
  
  <p>with this error:</p>
  
  <pre><code>pq: F:"scan.l" M:"syntax error at end of input" S:"ERROR" C:"42601" P:"50" R:"scanner_yyerror" L:"993"
  </code></pre>
  
  <p>What's the problem? The error messages in PostgreSQL are very cryptic.</p>