Bad SQL statement in security context fixed.