Unknown column 'files' in 'where clause' Select * From projects Where cat_id = files order by id desc