OK ... wht I was doing wrong here was that, once the sibling nested repeat finished, it was closing off the MySQL connection so in fact, only the first iteration of the repeat actually otpt all of the records. Every subsequent iteration only put the checkbox there ... and nothing else. To fix...