Fixing the advanced search to include the sub-categories when Show subcategories is enabled in Admin Panel -> Settings -> Miscellenaeous