You could probably just update your SQL statement from:
$nested->setQuery("SELECT * FROM test_repeat, fm_emails_est_tsk_client WHERE test_repeat.fmid = ?");
to:
$nested->setQuery("SELECT * FROM test_repeat WHERE test_repeat.fmid = ?");
You should already have the values from the fm_emails_est_tsk_client table in the other recordset, so it doesn't need to be added to this one.