title: How to Get Newest Data with `created_at` Column
body: <p>How can I query the data where <code>id_konsul = 4</code>, and how can I get the latest <code>staflow</code> from <code>created_at</code> if it is the same?</p>
  
  <p>example </p>
  
  <pre><code>id  id_konsul   staflow created_at
  
  1   4   1   21/05/2018 11.03
  2   4   2   22/05/2018 11.03
  3   4   3   23/05/2018 11.03
  4   4   4   24/05/2018 11.03
  5   4   5   25/05/2018 11.03
  6   4   6   26/05/2018 11.03
  7   4   7   27/05/2018 11.03
  8   4   6   28/05/2018 11.03
  9   4   7   29/05/2018 11.03
  10  4   7   30/05/2018 11.03
  11  4   8   31/05/2018 11.03
  </code></pre>
  
  <p>than i get this </p>
  
  <pre><code>id  id_konsul   staflow created_at
  1   4   1   21/05/2018 11.03
  2   4   2   22/05/2018 11.03
  3   4   3   23/05/2018 11.03
  4   4   4   24/05/2018 11.03
  5   4   5   25/05/2018 11.03
  8   4   6   28/05/2018 11.03
  10  4   7   30/05/2018 11.03
  11  4   8   31/05/2018 11.03
  </code></pre>