You can only "reliably" do that if your table contains a timestamp field. Note the use of the word TIMESTAMP, not a date-type or datetime.
TIMESTAMP columns are updated automatically when a record is inserted or updated.
Then you can select max(timestamp_field) to get the latest update date.
Don't use this to find a record you just inserted, because this is not multi-user safe.