{"record":{"id":"aebb9cfc13fd6039","repo":"phalcon/cphalcon","slug":"unknown-statement-type","errorCode":null,"errorMessage":"Unknown statement {type}","messagePattern":"Unknown statement (.+?)","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Query\\Exceptions\\UnknownPhqlStatement","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Query.zep","lineNumber":464,"sourceCode":"                let result = this->executeUpdate(\n                    intermediate,\n                    mergedParams,\n                    mergedTypes\n                );\n\n                break;\n\n            case PHQL_T_DELETE:\n                let result = this->executeDelete(\n                    intermediate,\n                    mergedParams,\n                    mergedTypes\n                );\n\n                break;\n\n            default:\n                throw new UnknownPhqlStatement(type);\n        }\n\n        /**\n         * We store the resultset in the cache if any\n         */\n        if cacheOptions !== null {\n            /**\n             * Only PHQL SELECTs can be cached\n             */\n            if type != PHQL_T_SELECT {\n                throw new ResultsetNonCacheable();\n            }\n\n            cache->set(key, result, lifetime);\n        }\n\n        /**\n         * Check if only the first row must be returned","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Query.zep#L446-L482","documentation":"Error \"Unknown statement {type}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Query.zep:464 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}