title: Passing a key-value array in NodeJS for MySQL select query
body: <p>I can pass an array to an mysql insert in nodeJS like so..</p>
  
  <pre><code>var data = {userId: 3, name: "sample"}       
  db.query('insert into my_table SET ?', data, function(err, result){...}
  </code></pre>
  
  <p>Is there a similar way of passing an array to a select query in the where clause... without specifying all the fields?</p>
  
  <pre><code>var data = {userId: 3, name: "sample"} 
  db.query('select * from my_table WHERE ?', data, function(err, result){...}
  </code></pre>
  
  <p>Doesn't seem to work.. nor does using the SET name in place of where...</p>