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