Most likely this occurred because you recently just did an upgrade to a higher version of NLS. In some cases, the custom statement was designed for that specific version of NLS. 


Send a copy of your custom report to a support rep. and they will have the Reports Manager recompile it for new version.