Error: Unknown column 'a.category_id' in 'where clause'