Just before the repeat region, add the following code:
mysql_data_seek($RecordsetName, 0);
$row_RecordsetName = mysql_fetch_assoc($RecordsetName);
change "RecordsetName" to the name of your recordset. this will reset the recordset at the first record.