Whichever value you want displayed from the second recordset can now be added from the second recordset on the page and then you can apply the repeat region server behavior to display it for each previously selected value... so it should be "text".
And now that I'm looking at your column names. The SQL statement on line 29 should be:
$rsAvsettfor->setQuery("SELECT * FROM ms_avsettfor WHERE id IN (?)");
$rsAvsettfor->setQuery("SELECT * FROM ms_avsettfor WHERE text IN (?)");