title: How to select last inserted row by id?
body: <p>that my problem:</p>
  
  <p>I have database table like that:</p>
  
  <pre><code>id (AI)    market_id
  1             6       
  2            10      
  3             6       
  4            10   
  5            11     
  </code></pre>
  
  <p>How to select last inserted market_id by id?</p>