title: mysql select from n last rows
body: <p>I have a table with index (autoincrement) and integer value. The table is millions of rows long.</p>
  
  <p>How can I search if a certain number appear in the last n rows of the table most efficiently?</p>