CDbCommand failed to execute the SQL statement
When i try to access this link http://fondation-zeitgeist.com/live/profil/Valentin/MBAPPE/id/1
It shows me an error
"CDBcommand failed to execute SQL"
CDbCommand n'a pas pu exécuter la commande SQL : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'notread' in 'where clause'. The SQL statement executed was: SELECT `t`.`dest` AS `c`, COUNT(*) AS `s` FROM `pe_mp` `t` WHERE (valid = 1 and notread = 1) AND (`t`.`dest`=1) GROUP BY `t`.`dest`
But i don't know where i can find 'notread' or 'where clause' and what to do exactly with this.
{
532 if($this->_connection->enableProfiling)
533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
534
535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
536 $message=$e->getMessage();
537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
539
540 if(YII_DEBUG)
541 $message.='. The SQL statement executed was: '.$this->getText().$par;
542
543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
545 }
546 }
547
548 /**
549 * Builds a SQL SELECT statement from the given query specification.
550 * @param array $query the query specification in name-value pairs. The following
551 * query options are supported: {@link select}, {@link distinct}, {@link from},
552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
553 * {@link limit}, {@link offset} and {@link union}.
554 * @throws CDbException if "from" key is not present in given query parameter
555 * @return string the SQL statement
It'll be kind i you can help me thanks.
You can find the error here http://fondation-zeitgeist.com/live/profil/Valentin/MBAPPE/id/1
Posted Nov 29, 2018, 8:55 PM UTC
12
looks like you don't have a column called
notreadin thepe_mptable. check the table structureOh, thanks :DDD