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 desc_az != "") AND (active = 1 and type = 2 and `show` = 1) ORDER BY sid DESC LIMIT 3

/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/common/components/MoreRightPanelWidget.php(17): CActiveRecord->findAll(array("condition" => "active = 1 and type = 2 and `show` = 1", "order" => "sid DESC", "limit" => 3))
12         $this->renderFile = strtolower(get_class($this));  
13     }
14         
15     public function run()
16     {
17         $model = Projects::model()->lang('title, text, desc')->findAll(array('condition'=>'active = 1 and type = 2 and `show` = 1', 'order'=>'sid DESC', 'limit'=>3));
18         
19         $pmodel = Projects::model()->lang('title, text, desc')->findAll(array('condition'=>'active = 1 and type = 0 and `show` = 1', 'order'=>'sid DESC', 'limit'=>6));
20         
21         $this->render($this->renderFile, array('model'=>$model, 'pmodel'=>$pmodel));
22       }
#5
+
 /wwwroot/public_html/newultra/ultra/frontend/protected/views/site/partners.php(40): CBaseController->widget("MoreRightPanelWidget", array("isVacancy" => false))
35         <?php endif; ?>
36         </div>
37 
38     </div>
39 
40         <?php $this->widget('MoreRightPanelWidget', array('isVacancy'=>false)); ?>
41     </div>
42 </main>
#10
+
 /wwwroot/public_html/newultra/ultra/frontend/protected/controllers/SiteController.php(469): CController->render("partners", array("model" => array(Partners, Partners, Partners, Partners, ...)))
464     
465     public function actionPartners()
466     {
467         $model = Partners::model()->findAll(array('condition'=>'active = 1', 'order'=>'sid DESC'));
468         
469         $this->render('partners', array('model'=>$model));
470     }
471     
472     public function actionVideo($id, $type = '')
473     {
474         $model = File::model()->findByPk((int)$id, array('condition'=>'active = 1'));
2024-03-19 14:31:49 Apache/2.2.15 (CentOS) Yii Framework/1.1.13