Obtenha a coluna anterior de uma tabela em 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)