Mam problem z tym kawałkiem kodu:
$res = new Model_User(); $res = Doctrine_Query::create() ->from('Model_User') ->where('MD5(SHA1(CONCAT(login,'.$this->autoLoginKey.',password))) = ?', $this->getRequest()->getParam('code')); $resCode = $res->fetchOne();
Wyrzuca mi taki bład:
Message: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
Wydje mi sie ze bład jest w tym kawałku ponieważ gdy go usunę działa poprawnie:
'.$this->autoLoginKey.'
Nikt nie ma pomysłu??