title: Select last record in the table
body: <p>How to select last record (that is having <code>MAX(id)</code>) from the table?<br>
  Next statement works OK, but selects the first record:</p>
  
  <pre><code>$statistics = SystemStatisticsHistory::findOne(1); 
  </code></pre>