Shadowed err value (stmt.go)

The error assigned here is shadowed by a prior err declaration in the same function, so it is not the one being returned. Consider renaming the variable or returning the error explicitly.