Unknown column 'apartamentos' in 'where clause': SELECT * FROM propiedades WHERE id = apartamentos ORDER BY alta DESC