title: node | MySQL multiple WHERE with AND clause
body: <p>I am trying to do a statement in node using mysql package. I am trying to select from a table <code>WHERE</code> with a <code>AND</code> clause such as <code>WHERE id = 1 AND course = 1</code> so far I've got as far as being able to SELECT but I'm getting an error, I can see the error though and it's that there is no <code>AND</code> when I am binding the id.</p>
  
  <p>This is my current code. </p>
  
  <pre><code>let sql = 'SELECT * FROM users WHERE ?';
  
  let values = {
      id: 1,
      course: 1
  }
  
  database.query(sql, values, (err, result) =&gt; {
  
  }
  </code></pre>
  
  <p>This is the error I am getting...</p>
  
  <p><code>SELECT * FROM users WHERE id = 1, course = 1</code></p>
  
  <p>The query once it has been through node is missing the <code>AND</code></p>
  
  <p>Any help would be appreciated.</p>