Disable a troublesome query.