title: node-mysql Using array in query
body: <p>I'm trying do a query using an array but having a parse error.</p>
  
  <p><strong>a</strong> - contains an array </p>
  
  <p>Ex:[ 7, 26, 87, 65, 86, 23, 63, 69, 44, 61, 8, 79, 47, 88, 15, 17 ]</p>
  
  <p><strong>conexao_bd.escape(a)</strong> - escaped array </p>
  
  <p>Ex: 7, 26, 87, 65, 86, 23, 63, 69, 44, 61, 8, 79, 47, 88, 15, 17</p>
  
  <p>It needs to be in this format  (7, 26, 87, 65, 86, 23, 63, 69, 44, 61, 8, 79, 47, 88, 15, 17), so I can use it in the query. Any help how to change format?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>conexao_bd.query("SELECT question, answer FROM ", conexao_bd.escape(tipo) + " WHERE id IN " + conexao_bd.escape(a) ,function(err, rows){
  
      if(err) console.log("Erro na query questions: "+err);
      else{
          perguntas.questions.push(rows);
          console.log(JSON.stringify(perguntas));
      }
  });
  </code></pre>