title: Running custom database queries in ModX Revo
body: <p>I am trying to query the database within a snippet within ModX Revo:</p>
  
  <pre><code>&lt;?php
  
  $leadersql = "SELECT * FROM `modx_menus`";
  
  $result = mysql_query($leadersql);
  
  while ($row = mysql_fetch_array($result)) {
    echo "hello";
  };
  
  ?&gt;
  </code></pre>
  
  <p>On Evo this worked fine but returns nothing in Revo.</p>
  
  <p>Do I need to set it up differently?</p>