$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.
I did this but it does not give any errors. It just adds the record to the db as before.