I'd need ftp access and steps to reproduce in order to debug it myself. I'd start by adding code below line 91 like:
echo($WA_Sql);
die();
and see what the update statement looks like... then try to run it in phpMyAdmin directly and see if it generates an error.