CDbException

CDbCommand falló al ejecutar la sentencia SQL: 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 'de Análise Político-Institucional, No. 18, Dezembro 2018, pp. 19-29.' at line 1. The SQL statement executed was: SELECT * FROM `tbl_integrantes_info` `t` WHERE id_integrante = Boletim de Análise Político-Institucional, No. 18, Dezembro 2018, pp. 19-29.

/data/WWW/PHPServer/yii-master/framework/db/CDbCommand.php(528)

516             return $result;
517         }
518         catch(Exception $e)
519         {
520             if($this->_connection->enableProfiling)
521                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
522             $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
523             $message = $e->getMessage();
524             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
525                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
526             if(YII_DEBUG)
527                 $message .= '. The SQL statement executed was: '.$this->getText().$par;
528             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
529                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
530         }
531     }
532 
533     /**
534      * Builds a SQL SELECT statement from the given query specification.
535      * @param array $query the query specification in name-value pairs. The following
536      * query options are supported: {@link select}, {@link distinct}, {@link from},
537      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
538      * {@link limit}, {@link offset} and {@link union}.
539      * @return string the SQL statement
540      * @since 1.1.6

Stack Trace

#3
+
 /data/WWW/PHPServer/PPD2020/protected/controllers/SiteController.php(296): CActiveRecord->findAll(array("condition" => "id_integrante = Boletim de Análise Político-Institucional, N..."))
291 
292     public function actionIntegrante($id)
293     {
294 
295         $model = Integrantes::model()->findByPk($id);
296         $modelInfo = IntegrantesInfo::model()->findAll(array('condition'=>'id_integrante = '.$id));
297 
298         $this->render('integrante', array('model' => $model,'modelInfo' => $modelInfo));
299     }
300 
301     public function actionNosotros(){
#13
+
 /data/WWW/PHPServer/PPD2020/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 
2024-03-28 18:16:48 Apache/2.4.18 (Ubuntu) Yii Framework/1.1.12