{"record":{"id":"a1577508df7c9607","repo":"phalcon/cphalcon","slug":"this-type-of-statement-generates-multiple-sql-stat","errorCode":null,"errorMessage":"This type of statement generates multiple SQL statements","messagePattern":"This type of statement generates multiple SQL statements","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Query\\Exceptions\\MultipleSqlStatementsNotSupported","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Query.zep","lineNumber":587,"sourceCode":"    {\n        var intermediate;\n\n        /**\n         * The statement is parsed from its PHQL string or a previously\n         * processed IR\n         */\n        let intermediate = this->parse();\n\n        if this->type == PHQL_T_SELECT {\n            return this->executeSelect(\n                intermediate,\n                this->bindParams,\n                this->bindTypes,\n                true\n            );\n        }\n\n        throw new MultipleSqlStatementsNotSupported();\n    }\n\n    /**\n     * @return TransactionInterface|null\n     */\n    public function getTransaction() -> <TransactionInterface> | null\n    {\n        return this->transaction;\n    }\n\n    /**\n     * Gets the type of PHQL statement executed\n     *\n     * @return int\n     */\n    public function getType() -> int\n    {\n        return this->type;","sourceCodeStart":569,"sourceCodeEnd":605,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Query.zep#L569-L605","documentation":"Error \"This type of statement generates multiple SQL statements\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Query.zep:587 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"}