title: Node Express Postgres App.Post Syntax error
body: <p><strong>Currently receiving the following error when trying to pass variables to postgres db:</strong></p>
  <p><em>Error: syntax error at or near &quot;,&quot;</em></p>
  <pre><code>  const rb = req.body;
    const sql= &quot;insert into test1 (user, name, created) values (?, ?, CURRENT_TIMESTAMP);&quot;
    pool.query(sql, [rb.user, rb.name], (err) =&gt; {
      if (err) {
        console.log('Error: ' + err);
      } else {
        res.redirect('/');
  
      }
    });
  });  
  </code></pre>
  <p>When I remove [rb.user, rb.name] and hardcode the variables, it goes through.  Any ideas/possibly an oversight on my end?</p>