title: Find the last row that meets a query condition with Sails.js
body: <p>What would be the best solution to find only one record with a Waterline - Sails query that search the last inserted price for the room2 in the given date?</p>
  
  <pre><code>ID  PRICE   START       STOP        ROOM    createdAt           updatedAt
  -------------------------------------------------------------------------
  85  750.00  2016-01-01  2017-12-31  room1   2016-02-25 10:09:47 2016-02-25 10:09:47
  86  590.00  2016-01-01  2017-12-31  room2   2016-02-25 10:09:55 2016-02-25 10:09:55
  90  410.00  2016-02-25  2016-02-27  room2   2016-02-25 16:46:08 2016-02-25 16:46:08
  91  310.00  2016-01-26  2016-04-28  room2   2016-02-26 09:35:26 2016-02-26 09:35:26
  </code></pre>
  
  <p>I get wrong results doing these:</p>
  
  <pre><code>var where = {"start":{"&lt;=":"2016-02-25T23:00:00.000Z"},"end":{"&gt;=":"2016-02-25T23:00:00.000Z"},"room":"room2"}
  
  PriceHistory.find(where).max('createdAt').exec(function(err, prices){
          res.json(prices);
  });
  </code></pre>