Create a php function that takes an array of items, removes all duplicate items and returns a new array in the same sequential order as the old array(minus duplicates). code example
Example: how to remove duplicate values from a multidimensional array in php
We used this to de-duplicate results from a variety of overlapping queries.
$input = array_map("unserialize", array_unique(array_map("serialize", $input)));