find the folllowing copde on the page;
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
and change it to:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql."");
this will write the full SQL causing the error after the error to help troubleshoot.