@ResultsByCode = ( 1 = @ of registered ids 2 = @ of unregistered ids 3 = @ of waiting ids )