Dapatkan kolom tabel sebelumnya di mysql
select * from foo where id = (select max(id) from foo where id < 4)
Enthusiastic Echidna
select * from foo where id = (select max(id) from foo where id < 4)