Ver originalSELECT C.id, C.saldoFROM CAJA CINNER JOIN ( SELECT MAX(id) id FROM CAJA WHERE idSucursal = 1) T ON C.id = T.id