When you get to the second loop the recordset is on the last record. It needs to be reset to the first record.
<?php
mysql_data_seek($rs, 0);
$row_rs = mysql_fetch_assoc($rs);
while($row_rs = mysql_fetch_assoc($result)){
echo $row_rs['sec_email'].',';}
?>