Modification per wdepots coding
http://forums.oscommerce.com/tracker/issue-630-advanced-search-on-just-category-andor-manufacturer-results-in-error/page__gopid__1920#entry1920