Unknown column 'lcl.*' in 'field list' - SELECT lcl.`*`, (SELECT cadastroFK FROM leilaocavalolance as lcl2 WHERE lcl2.leilaocavaloFK = lcl.leilaocavaloFK AND lcl.id != lcl2.id ORDER BY id DESC LIMIT 1) as penultimo FROM leilaocavalolance as lcl WHERE leilaocavaloFK = 325 AND excluido = '0' ORDER BY id DESC