Well if you are using PHP then you can use the built in function "array_unique". Basically, take your array in IDs and parse it through that function to strip out all the non-unique ID numbers. Then all you need to do is loop through the new array and do a SELECT on each row to get the corresponding data.
Barebones example:
PHP Code:
$someIDs = array(1,2,2,4,5,6,7,2);
$uniqueIDs = array_unique($someIDs);
foreach ($uniqueIDs as $idNumber)
{
...MySQL SELECT QUERY HERE...
}
Hope that helps.
- Mike
__________________