Query cannot be compiled because element appears in XML plan provided to USE PLAN but USE PLAN was applied to a non-cursor ...