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