Unknown column 'hoteles' in 'where clause': SELECT * FROM propiedades WHERE id = hoteles-de-interior ORDER BY alta DESC