echonotice(i18n("A BUG WAS IDENTIFIED IN YOUR PREVIOUS YEAR ROLLOVER WHICH CAUSED AWARD PRIZES TO NOT BE ROLLED OVER PROPERLY. THEY ARE NOW BEING RE-ROLLED OVER WITH THE PROPER PRIZE INFORMATION. THIS WILL ONLY HAPPEN ONCE."))."<br />";
mysql_query("DELETE FROM award_awards WHERE year='$newfairyear'");
mysql_query("DELETE FROM award_prizes WHERE year='$newfairyear'");
mysql_query("DELETE FROM award_contacts WHERE year='$newfairyear'");
mysql_query("DELETE FROM award_types WHERE year='$newfairyear'");
mysql_query("DELETE FROM award_awards_projectcategories WHERE year='$newfairyear'");
mysql_query("DELETE FROM award_awards_projectdivisions WHERE year='$newfairyear'");
echoi18n("Rolling awards")."<br />";
//awards
$q=mysql_query("SELECT * FROM award_awards WHERE year='$currentfairyear'");
echomysql_error();
while($r=mysql_fetch_object($q))
{
mysql_query("INSERT INTO award_awards (award_sponsors_id,award_types_id,name,criteria,presenter,`order`,year,excludefromac,cwsfaward) VALUES (
'".mysql_escape_string($r->award_sponsors_id)."',
'".mysql_escape_string($r->award_types_id)."',
'".mysql_escape_string($r->name)."',
'".mysql_escape_string($r->criteria)."',
'".mysql_escape_string($r->presenter)."',
'".mysql_escape_string($r->order)."',
'".mysql_escape_string($newfairyear)."',
'".mysql_escape_string($r->excludefromac)."',
'".mysql_escape_string($r->cwsfaward)."')");
$award_awards_id=mysql_insert_id();
$q2=mysql_query("SELECT * FROM award_awards_projectcategories WHERE year='$currentfairyear' AND award_awards_id='$r->id'");
echomysql_error();
while($r2=mysql_fetch_object($q2))
{
mysql_query("INSERT INTO award_awards_projectcategories (award_awards_id,projectcategories_id,year) VALUES (