title: Postgresql [ReferenceError: (somevalue) not defined]
body: <p>Here's my code containing PostgreSql query using <a href="https://github.com/vitaly-t/pg-promise" rel="nofollow noreferrer">pg-promise</a>:</p>
  
  <pre><code>var db    = require('/pg-connection'),
      PQ    = require('pg-promise').ParameterizedQuery;
  
  var fullname = 'username',
      email    = 'UniqueEmailHere',
      password = 'userPassword',
      uuid     = '15-20charactersRandomString';
  
  var query = new PQ("INSERT INTO tablename.user (fullname, email, password, uuid, status) 
              VALUES($1, $2, $3, $4, $5) RETURNING id", 
              [fullname, email, password, uuid, '1' ] );
  
  db.any(query)
      .then(function (data) {
          callback(null, data)
      })
      .catch(function (err) {
          console.log(err)
          callback(err)
      });
  </code></pre>
  
  <p>Query inserts the values (as given) into the database but at the same returns the <code>error</code> in catch:</p>
  
  <pre><code>[ReferenceError: uuid not defined]
  </code></pre>
  
  <p>I tried running the same query in pgAdmin4 and its running fine there as well. Can somebody please point out what's the real issue?</p>