title: Nodejs postgres pg syntax error
body: <p>As the title says, I'm running into a syntax error using <code>node-postgres</code>. Here's what the code looks like</p>
  
  <pre><code>const {Pool, Client} = require('pg')
  const pool = new Pool({
    user: '&lt;user&gt;',
    host: '&lt;host&gt;',
    database: '&lt;database&gt;',
    password: '&lt;pw&gt;',
    port: &lt;port&gt;
  })
  
  let query = `SELECT * FROM user JOIN notifications ON user.user_id = notifications.user_id WHERE user_id=$1`
  
  let values = ["123"]
  
  pool.query(query, values)
    .then(() =&gt; { /* do something */} )
    .catch((err) =&gt; { console.log(err)} )
  </code></pre>
  
  <p>Based on this query, I get a syntax error with the message</p>
  
  <pre><code>syntax error at or near "."
  </code></pre>
  
  <p>Since the same query runs fine in pgAdmin, my guess is that it's module specific, but I haven't figured out what the problem is.</p>
  
  <p>Any help much appreciated!</p>
  
  <p>Edit: added missing bracket, thanks to Sreeragh A R</p>