First you need to know the records in a table are not in any special
order. If you want the last record, you will need to add a time stamp so
there is a guaranteed way of determining what entry was last.
With that you could use a select query to select the latest time.