I have a table that looks similar to this:
credit +---------+----------------+-------------+--------------+-------------------------+ | id (PK) | person_id (FK)
Use distinct on:
distinct on
select distinct on (person_id) t.* from t order by person_id, date_time desc