select * from sc_records where record_id in (
select max(record_id) from sc_records group by user_id order by null.
)
select * from sc_records where record_id in (
select max(record_id) from sc_records group by user_id order by null.
)