title: get max value of column
body: <p>I'm trying to get more value from a column in a table.
  My table is very simple:</p>
  
  <pre><code>public class MensajeTablon
  {
      [PrimaryKey]
      public int id { get; set; }
      public int identificadorUsuario { get; set; }
      public string nombre { get; set; }
      public string mensaje { get; set; }
      public string foto { get; set; }
      public DateTime fecha { get; set; }
      public int identificadorTablon { get; set; }
  }
  </code></pre>
  
  <p>Now I have 2 rows in my table, with id 1 and one with id 2. When I try to query it returns me an object with id = 0. I do not understand why. My query is:</p>
  
  <pre><code>var idMensaje = dbConn.Query&lt;MensajeTablon&gt;("select MAX(id) from MensajeTablon;");
  </code></pre>
  
  <p>I'm sure I have those two rows that if I read the table (select * from MensajeTablon) I get the two rows.</p>