Originally Posted by Rick
How many groups do you have in total?

Hi Rick,

We have 17 groups and likely to have 20 or so in the next few months. Is it not a question of just removing the following couple of lines?
PHP Code
if ($group > 4) {
				$group = $grouparray[$group];
			} // end if+ 


This would allow the groupIDs greater than 4 to simply be passed through and prevent the PK clashes. This may be a bit simplistic and I appreciate there may be other issues in play here!

Regards,

- Paul