if(!$ok){// Oh dear, will pass to next iteration, but trying a new moniker
if($next_num==1){
// Individual checks get very slow with time, so do a jump ahead based on how much is already under a suffixed version of the $moniker (as we can assume sequentiality)
$accelerate_sql='SELECT COUNT(*)'.$basic_sql.' AND resource_moniker LIKE \''.db_encode_like($moniker.'%').'\'';