title: Node.js mysql query is undefined
body: <p>I'm running the following code on <code>Node.js</code>  and
  I am trying to use <code>mysql</code> with <code>nodejs</code>: trying to run the query: <code>select numbers from TABLE</code>. The result comes out as:</p>
  
  <blockquote>
    <p>"undefined"</p>
  </blockquote>
  
  <pre><code>function getNumbers()
  {
      cio.query("SELECT numbers FROM rooms WHERE durum='1'", function(err, result)
      {
          if (err) 
           throw err;
          else
       result[0].numbers;
  
      });
  
  }
  var kar = getNumbers();
   console.log(kar);
  </code></pre>
  
  <p>So, what should I do ? Please help.</p>