SELECT * from tb_check_in ORDER BY id DESC; DELETE from tb_check_in where id > 1240;