{"record":{"id":"478234d286d7bcb8","repo":"phalcon/cphalcon","slug":"bound-parameter-wildcard-cannot-be-replaced-be","errorCode":null,"errorMessage":"Bound parameter '{wildcard}' cannot be replaced because it is not in the placeholders list","messagePattern":"Bound parameter '(.+?)' cannot be replaced because it is not in the placeholders list","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Query\\Exceptions\\BindParameterNotInPlaceholders","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Query.zep","lineNumber":1035,"sourceCode":"                case PHQL_T_DOUBLE:\n                    let insertValue = dialect->getSqlExpression(exprValue);\n                    break;\n\n                case PHQL_T_NULL:\n                    let insertValue = null;\n                    break;\n\n                case PHQL_T_NPLACEHOLDER:\n                case PHQL_T_SPLACEHOLDER:\n                case PHQL_T_BPLACEHOLDER:\n                    let wildcard = str_replace(\n                        \":\",\n                        \"\",\n                        dialect->getSqlExpression(exprValue)\n                    );\n\n                    if unlikely !fetch insertValue, bindParams[wildcard] {\n                        throw new BindParameterNotInPlaceholders(wildcard);\n                    }\n\n                    break;\n\n                default:\n                    let insertValue = new RawValue(\n                        dialect->getSqlExpression(exprValue)\n                    );\n\n                    break;\n            }\n\n            let fieldName = fields[number];\n\n            /**\n             * If the user didn't define a column list we assume all the model's\n             * attributes as columns\n             */","sourceCodeStart":1017,"sourceCodeEnd":1053,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Query.zep#L1017-L1053","documentation":"Error \"Bound parameter '{wildcard}' cannot be replaced because it is not in the placeholders list\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Query.zep:1035 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"}