Query Error occurs when Submitting Edited Submission