title: pg_query_params return error: bind message supplies 2 parameters, but prepared statement "" requires 1
body: <pre><code>$Query = pg_query_params($db, 'SELECT username FROM users WHERE id = $1 AND password=(crypt(\'$2\',password)) LIMIT 1', array(33,'thepassword'));
  </code></pre>
  
  <p>"bind message supplies 2 parameters, but prepared statement "" requires 1"</p>
  
  <p>The problem seem around the '$2' parameter, heredoc string doesnt works.</p>
  
  <p>Suggestions ?</p>