I am trying to get the first and last record from a month. In phpmyadmin I get the correct result. In python I don't. In fact python returns the same row for both of these queries. First number is the table primary key for the rows.I am trying to get the first and last record fr