html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" Pin-Up "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"CDbException Pin-Up

CDbException Pin-Up

CDbCommand bir SQL cümleciğini çalıştıramadı: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. The SQL statement executed was: SELECT COUNT(*) FROM `tbl_sorular` `t` WHERE category_id =

/home/yogaa/public_html/framework/db/CDbCommand.php(543)

531         {
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();
537Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', Pin-Up538                 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 
543throw Pin-Up 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 Pin-Up from the given query specification.550      * @param array $query the query specification in name-value pairs. The following
551* query options are supported: Pin-Up {@link select}, {@link distinct}, {@link from},552* {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, Pin-Up553* {@link limit}, {@link offset} and {@link Pin-Up union}.554      * @throws CDbException if "from" key is not present in given query parameter
555      * @return string the SQL statement

Stack Trace

#2
+
 /home/yogaa/public_html/protected/modules/sorular/controllers/front/DefaultController.php(60): CActiveRecord->count(CDbCriteria)
55         $this->breadcrumbs[$this->pageTitle ] = Yii::app()->baseUrl . '/sorular/kategori/'.$cat->slug;
56         $criteria=new CDbCriteria();
57         $criteria->condition = 'category_id ='.$cat->id;
58         //$criteria->params = array(':language'=>Yii::app()->wbrLanguage->activeLanguage->id);
59         $criteria->order = 't.order desc';
60         $count=Sorular::model()->count($criteria);
61         $pages=new CPagination($count);
62         $pages->pageSize=999;
63         $pages->applyLimit($criteria);
64         $models=Sorular::model()->findAll($criteria);
65         $others = Sorular::model()->findAll(array('limit'=>10,'order'=> 'id desc'));
#12
+
 /home/yogaa/public_html/protected/components/WebApplicationEndBehavior.php(32): CApplication->run()
27         // Attach the changeModulePaths event handler
28         // and raise it.
29         $this->onModuleCreate = array($this, 'changeModulePaths');
30         $this->onModuleCreate(new CEvent($this->owner));
31 
32         $this->owner->run(); // Run application.
33     }
34 
35// This event should be raised Pin-Up when CWebApplication36     // or CWebModule instances are being initialized.
37     public function onModuleCreate($event)
#14
+
 /home/yogaa/public_html/index.php(23): CComponent->__call("runEnd", array("front"))
18         return parent::init();
19     }
20 }
21 
22 $app = new KraftCMS($config);
23 $app->runEnd('front');
24 
2025-08-06 14:25:54 LiteSpeed Yii Framework/1.1.22