Modified getSubcategory to return subcategory_id