PDOException

SQLSTATE[42602]: Invalid name: 7 ERROR: invalid name syntax

/srv/www/htdocs/survey/application/controllers/admin/quotas.php(179)

167         $iSurveyId = sanitize_int($iSurveyId);
168         $this->_checkPermissions($iSurveyId, 'create');
169         $aData = $this->_getData($iSurveyId);
170         $aLangs = $aData['aLangs'];
171 
172         $oQuota = new Quota;
173         $oQuota->sid = $iSurveyId;
174         $oQuota->name = Yii::app()->request->getPost('quota_name');
175         $oQuota->qlimit = Yii::app()->request->getPost('quota_limit');
176         $oQuota->action = Yii::app()->request->getPost('quota_action');
177         $oQuota->autoload_url = Yii::app()->request->getPost('autoload_url');
178         $oQuota->save();
179         $iQuotaId = Yii::app()->db->lastInsertID;
180 
181         //Iterate through each language, and make sure there is a quota message for it
182         $sError = '';
183         foreach ($aLangs as $sLang)
184         {
185             if (!$_POST['quotals_message_' . $sLang])
186             {
187                 $sError .= getLanguageNameFromCode($sLang, false) . "\\n";
188             }
189         }
190         if ($sError != '')
191         {

Stack Trace

#2
+
 /srv/www/htdocs/survey/application/controllers/admin/quotas.php(179): CComponent->__get("lastInsertID")
174         $oQuota->name = Yii::app()->request->getPost('quota_name');
175         $oQuota->qlimit = Yii::app()->request->getPost('quota_limit');
176         $oQuota->action = Yii::app()->request->getPost('quota_action');
177         $oQuota->autoload_url = Yii::app()->request->getPost('autoload_url');
178         $oQuota->save();
179         $iQuotaId = Yii::app()->db->lastInsertID;
180 
181         //Iterate through each language, and make sure there is a quota message for it
182         $sError = '';
183         foreach ($aLangs as $sLang)
184         {
#5
+
 /srv/www/htdocs/survey/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(quotas, ReflectionMethod, array("surveyid" => "819844", "sa" => "insertquota", "iSurveyId" => "819844", "iSurveyID" => "819844"))
77             $oMethod = new ReflectionMethod($this, $sDefault);
78         }
79 
80         // We're all good to go, let's execute it
81         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
82         return parent::runWithParamsInternal($this, $oMethod, $params);
83     }
84 
85     /**
86     * Some functions have different parameters, which are just an alias of the
87     * usual parameters we're getting in the url. This function just populates
#9
+
 /srv/www/htdocs/survey/application/controllers/AdminController.php(159): CController->run("quotas")
154                 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri;
155 
156                 $this->redirect($this->createUrl('/admin/authentication/login'));
157             }
158 
159             return parent::run($action);
160     }
161 
162     /**
163     * Routes all the actions to their respective places
164     *
2012-11-25 21:06:04 Apache/2.2.21 (Linux/SUSE) Yii Framework/1.1.10