“Invalid parameter number: parameter was not defined” Inserting data
Just to provide an answer – because this error is pretty common – here are a few causes: The :parameter name does not match the bind by mistake (typo?). This is what happened here. He has :alias in the SQL statement, but bound :username. So when the param binding was attempted, Yii/PDO could not find … Read more