@jSylvestre I think you are missing a comma here next to UserId.  Also not quite sure what this is trying to accomplish, since it will just set the userId to a clean version of the userid already in the emailQueue table.  Since the queue is being upload on the queueId won't it still have the same potential issue?