I stumbled upon this topic where there were also multiple queries being executed. (it doesn't offer a solution but maybe helps explain why you're running into problems)
Link to query fails when multiple UPDATE statements are used
I stumbled upon this topic where there were also multiple queries being executed. (it doesn't offer a solution but maybe helps explain why you're running into problems)
Link to query fails when multiple UPDATE statements are used