What I am doing is SELECTING zonemap_types from multiple rows in a db table. Each row will return a zonemap_types result that is a comma seperated array of numbers. I want to merge these arrays into one larger array (no two numbers will be the same). Then, I want to run another SELECT operation on another table, but only selecting those results where the value zonemap_type is not in the merged array created from the first SELECT operation. I'm not sure how to go about this, can anyone help please?