CDbException

CDbCommand SQL-sorğusunu yerinə yetirməyə müvəffəq olmadı: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'text_az' in 'where clause'. The SQL statement executed was: SELECT * FROM `bbtm_new_projects` `t` WHERE (title_az != "" AND text_az != "") AND (`t`.`id`=156 AND (active = 1 and type = 1)) LIMIT 1

/wwwroot/public_html/newultra/ultra/framework/db/CDbCommand.php(541)

529         {
530             if($this->_connection->enableProfiling)
531                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
532 
533             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
534             $message=$e->getMessage();
535             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
536                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
537 
538             if(YII_DEBUG)
539                 $message.='. The SQL statement executed was: '.$this->getText().$par;
540 
541             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
542                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
543         }
544     }
545 
546     /**
547      * Builds a SQL SELECT statement from the given query specification.
548      * @param array $query the query specification in name-value pairs. The following
549      * query options are supported: {@link select}, {@link distinct}, {@link from},
550      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
551      * {@link limit}, {@link offset} and {@link union}.
552      * @return string the SQL statement
553      * @since 1.1.6

Stack Trace

#3
+
 /wwwroot/public_html/newultra/ultra/frontend/protected/controllers/SiteController.php(408): CActiveRecord->findByPk(156, array("condition" => "active = 1 and type = 1"))
403         $this->render('solserv', array('model'=>$model));
404     }
405     
406     public function actionMsolserv($id)
407     {
408         $model = Projects::model()->lang('title, text')->findByPk((int)$id, array('condition'=>'active = 1  and type = 1'));
409         if( count($model) <= 0 ){
410             throw new CHttpException(404,'The requested page does not exist.');
411         }
412             
413         $this->render('projectsmore', array('model'=>$model, 'return'=>'solserv'));
#13
+
 /wwwroot/public_html/newultra/www/front/index.php(35): CApplication->run()
30 /** url defines */
31 
32 define('DEFAULTURL', '/menus/index', true);
33 
34 require_once($yii);
35 Yii::createWebApplication($config)->run();
2024-03-19 10:59:32 Apache/2.2.15 (CentOS) Yii Framework/1.1.13