Hello all.
So I've got this error:
SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)
With this SQL
SELECT `login`, `email` FROM `myusers` WHERE `id` = '9f1ac727-587f-4ae4-8008-6054566ef219' LIMIT 1
The table is simple
id
login
password
email
Why would I get that error?
I am thinking it is a Zend Framework bug because the SQL works in phpMyAdmin.
$this->query = 'SELECT `login`, `email` FROM `'.$this->_name.'` WHERE `id` = \''.$this->user->id.'\' LIMIT 1';
try {
$userInfo = $this->fetchRow($this->query);
$this->user->username = $userInfo->login;
$this->user->email = $userInfo->email;
return true;
} catch(Exception $e) {
$this->setAdminError($e->getMessage().'<br />'.$this->query, __METHOD__, __LINE__, __FILE__);
$this->publicMsg = $this->translations->translate('error500');
return false;
}
TIA!