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