Fixed issue where certain adv search queries would result in duplicate results