title: Sqlite get max id not working (?)
body: <p>Im using this:</p>
  
  <pre><code>SELECT * 
  WHERE id=MAX(id) 
  FROM history;
  </code></pre>
  
  <p>But my query is empty. I have also tried this (This one works):</p>
  
  <pre><code>SELECT MAX(id) AS max_id 
  FROM history;
  </code></pre>
  
  <p>But obviusly my query only contains the max_id key. What am I doing wrong with the first one?</p>