CDbException
Description
CDbCommand failed to execute the SQL statement: 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 'LIMIT 1' at line 1
Source File
D:\APMServ5.2.6\www\htdocs\yii\framework\db\CDbCommand.php(387)
00375:
00376: if($this->_connection->enableProfiling)
00377: Yii::endProfile('system.db.CDbCommand.query('.$this->getText().')','system.db.CDbCommand.query');
00378:
00379: return $result;
00380: }
00381: catch(Exception $e)
00382: {
00383: if($this->_connection->enableProfiling)
00384: Yii::endProfile('system.db.CDbCommand.query('.$this->getText().')','system.db.CDbCommand.query');
00385: Yii::log('Error in querying SQL: '.$this->getText().$par,CLogger::LEVEL_ERROR,'system.db.CDbCommand');
00386: $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
00387: throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
00388: array('{error}'=>$e->getMessage())),(int)$e->getCode(),$errorInfo);
00389: }
00390: }
00391: }