When editing submissions SQL Error is shown