title: Get last log entry
body: <p>I might have oversimplified my problem here: <a href="https://stackoverflow.com/questions/7654731/how-to-use-max-in-mysql">How to use MAX in MySQL?</a></p>
  
  <p>Given a user's log table:</p>
  
  <pre><code>TABLE: user_log
  - user_log_id (PK)
  - user_id (FK)
  - status
  - timestamp
  </code></pre>
  
  <p>What I need: the very last user log entry of all users that is a certain <code>status</code> and is at least 15 minutes old. If the user's latest log entry is a certain status and is 15 minutes old, I need to take certain actions in my application.</p>
  
  <p>How do I query this?</p>