Remove duplicate IDs from search by ID