Postgres: Simple SELECT * WHERE ... AND ... query fails
This query:

    client.query({
      text: "SELECT * FROM users WHERE provider = ? AND remote_id = ?",
      values: [JSONuser.provider, JSONuser.remote_id]
    }, 
    function(err, result) { 
      ... 
    })

Fails with `syntax error at or near "AND"`.

I'm unable to figure out why. Been programming all day. I think it's simple and I'm just tired. 
Postgres: Simple SELECT * WHERE ... AND ... query fails
===

This query:

    client.query({
      text: "SELECT * FROM users WHERE provider = ? AND remote_id = ?",
      values: [JSONuser.provider, JSONuser.remote_id]
    }, 
    function(err, result) { 
      ... 
    })

Fails with `syntax error at or near "AND"`.

I'm unable to figure out why. Been programming all day. I think it's simple and I'm just tired. 