title: socket.io mysql two and clauses
body: <p>I'm using socket.io with node-mysql module.kindly help in editing the code. How do i make this work?</p>
  
  <pre><code>socket.on('join',function(data){
  var srecord = {m_from: data.usid, m_to:data.tid};
  dbconn.query('SELECT m_from,m_text FROM messages WHERE (m_from = ? AND m_to = ?) OR (m_to = ? AND m_from = ?)',[data.usid,data.tid],function(err, records){
              if(err) throw err;
              socket.emit('output',records);});
               });
  </code></pre>
  
  <p>if executed, it shows error: check the manual that corresponds to ur DB server for right syntax to use near '? AND m_from=?)' </p>