Many databases automatically create a unique index number for every record, usually called something like RECORD_ID. You should look at your database documentation and see if the one you are using does this.
Without some external way of sequencing your data, and without indexes you are looking at a very long query.
select * from table where timestamp in (select max(timestamp) from table);
or
select max(timestamp) from table;
store in variable $max;
select * from table where timseamp = $max;