title: How to get first / last record
body: <p>My question is very simple but I can't think how to Google it. :D I need to get a last row with the needed email address. My query gives me the first record.</p>
  
  <p>What should I add here to get a last record with the needed email?</p>
  
  <pre><code>"SELECT userid, activation FROM users WHERE email = '$var1' LIMIT 1"
  </code></pre>