TDbException

Description

TDbCommand failed to execute the query SQL "SELECT id, lang, title, cat_id, flag FROM mon_languages WHERE flag&3=2 ORDER BY position ASC": SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query

Source File

/home/monbatc/public_html/framework/Data/TDbCommand.php (231)

0220:         try
0221:         {
0222:             // Prado::trace('Query: '.$this->getDebugStatementText(), 'System.Data');
0223:             if($this->_statement instanceof PDOStatement)
0224:                 $this->_statement->execute();
0225:             else
0226:                 $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText());
0227:             return new TDbDataReader($this);
0228:         }
0229:         catch(Exception $e)
0230:         {
0231: throw new TDbException('dbcommand_query_failed',$e->getMessage(),$this->getDebugStatementText());
0232: } 0233: } 0234: 0235: /** 0236: * Executes the SQL statement and returns the first row of the result. 0237: * This is a convenient method of {@link query} when only the first row of data is needed. 0238: * @param boolean whether the row should be returned as an associated array with 0239: * column names as the keys or the array keys are column indexes (0-based). 0240: * @return array the first row of the query result, false if no result. 0241: * @throws TDbException execution failed 0242: */ 0243: public function queryRow($fetchAssociative=true)

Stack Trace

#0 /home/monbatc/public_html/engine/Plugins/Extended/ALanguages/ALanguagesModel.php(55): TDbCommand->query()
#1 /home/monbatc/public_html/engine/Plugins/Extended/ALanguages/ALanguagesController.php(218): ALanguagesModel->getLanguages(Array, false, true)
#2 /home/monbatc/public_html/monbat/protected/Common/MTGlobalization.php(32): ALanguagesController->getLanguages(true)
#3 /home/monbatc/public_html/framework/TApplication.php(999): MTGlobalization->init(Object(TXmlElement))
#4 /home/monbatc/public_html/framework/TApplication.php(1047): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#5 /home/monbatc/public_html/framework/TApplication.php(394): TApplication->initApplication()
#6 /home/monbatc/public_html/monbat/index.php(131): TApplication->run()
#7 {main}
2020-09-28 09:20 Apache PRADO/3.2.0