Unknown column 'js' in 'where clause' SELECT * FROM sub_categories WHERE id=js order by id desc