html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" Pin-UpCDbException 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 Pin-Up for the right syntax to use near ')' at line 1. The SQL statement executed was: SELECT COUNT(*) FROM `tbl_blog_posts` `t` WHERE (deleted = 0) AND (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 Pin-Up PDOException ? $e->errorInfo : null;536             $message=$e->getMessage();
537Yii::log(Yii::t('yii','CDbCommand::{method}() failed: Pin-Up {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 Pin-Up query specification.550* @param array $query the query Pin-Up specification in name-value pairs. The following551* query options are Pin-Up supported: {@link select}, {@link distinct}, {@link from},552* {@link where}, {@link join}, {@link group}, Pin-Up {@link having}, {@link order},553      * {@link limit}, {@link offset} and {@link union}.
554* Pin-Up @throws CDbException if "from" key is not present in given query parameter555      * @return string the SQL statement

Stack Trace

#2
+
 /home/yogaa/public_html/protected/modules/blog/controllers/front/DefaultController.php(41): CActiveRecord->count(CDbCriteria)
36$this->breadcrumbs[$this->pageTitle Pin-Up ] = Yii::app()->baseUrl . '/blog/kategori/'.$cat->slug;37         $criteria=new CDbCriteria();
38         $criteria->condition = 'category_id ='.$cat->id;
39         //$criteria->params = array(':language'=>Yii::app()->wbrLanguage->activeLanguage->id);
40         $criteria->order = 't.order asc';
41         $count=BlogPosts::model()->count($criteria);
42         $pages=new CPagination($count);
43         $pages->pageSize=999;
44         $pages->applyLimit($criteria);
45         $models=BlogPosts::model()->findAll($criteria);
46         $others = BlogPosts::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 when CWebApplication
36// or CWebModule instances are Pin-Up 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:11:55 LiteSpeed Yii Framework/1.1.22