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