Trying to get property 'cate_id' of non-object