SQLException

SQLException

Description

Could not execute query [Native Error: Lost connection to MySQL server during query] [User Info: SELECT * FROM article, category WHERE category.CATEGORYID IN (13038,15469,25260,25271,25268,25267,25266,25264,25269,25270,25263,25262,25261,25272,14114,14928,13625,14117,14118,14119,14116,14057,13633,13631,13630,13629,13628,13627,13626,14155,14056,14058,14059,14817,14159,21185,21186,21187,21188,21189,21190,21191,14681,14115,25481,21010,21184,14942,14024,35367,13038) AND article.DELETED='0' AND article.CATEGORYID=category.CATEGORYID ]

Source File

/home/alhedaya/public_html/protected/DataAccess/creole/drivers/mysql/MySQLConnection.php (202)

0191:         $this->lastQuery = $sql;
0192:         //echo $sql;
0193:         //echo '<b style="color:red">'.$this->i++.'<b>';
0194:         //echo '<hr>';
0195:         if ($this->database) {
0196:             if (!@mysql_select_db($this->database, $this->dblink)) {
0197:                 throw new SQLException('No database selected', mysql_error($this->dblink));
0198:             }
0199:         }
0200:                 $result = @mysql_query($sql, $this->dblink);
0201:         if (!$result) {
0202: throw new SQLException('Could not execute query', mysql_error($this->dblink), $sql);
0203: } 0204: return new MySQLResultSet($this, $result, $fetchmode); 0205: } 0206: 0207: /** 0208: * @see Connection::executeUpdate() 0209: */ 0210: function executeUpdate($sql) 0211: { 0212: $this->lastQuery = $sql; 0213: 0214: if ($this->database) {

Stack Trace

#0 /home/alhedaya/public_html/protected/DataAccess/creole/common/StatementCommon.php(242): MySQLConnection->executeQuery('SELECT * FROM a...', NULL)
#1 /home/alhedaya/public_html/protected/Controls/ViewLastPost.php(128): StatementCommon->executeQuery('SELECT * FROM a...')
#2 /home/alhedaya/public_html/protected/Controls/ViewLastPost.php(103): ViewLastPost->getDataGridRecord(0, 5)
#3 /home/alhedaya/public_html/protected/Controls/ViewLastPost.php(93): ViewLastPost->pageChanged()
#4 /home/alhedaya/public_html/protected/Controls/ViewLastPost.php(80): ViewLastPost->LoadData()
#5 /home/alhedaya/public_html/framework/pradolite.php(4073): ViewLastPost->OnLoad(NULL)
#6 /home/alhedaya/public_html/framework/pradolite.php(4080): TControl->loadRecursive()
#7 /home/alhedaya/public_html/framework/pradolite.php(4080): TControl->loadRecursive()
#8 /home/alhedaya/public_html/framework/pradolite.php(4080): TControl->loadRecursive()
#9 /home/alhedaya/public_html/framework/pradolite.php(4080): TControl->loadRecursive()
#10 /home/alhedaya/public_html/framework/pradolite.php(6053): TControl->loadRecursive()
#11 /home/alhedaya/public_html/framework/pradolite.php(6045): TPage->processNormalRequest(Object(THtmlWriter))
#12 /home/alhedaya/public_html/framework/pradolite.php(8162): TPage->run(Object(THtmlWriter))
#13 /home/alhedaya/public_html/framework/pradolite.php(8128): TPageService->runPage(Object(mahdi), Array)
#14 /home/alhedaya/public_html/framework/pradolite.php(9089): TPageService->run()
#15 /home/alhedaya/public_html/framework/pradolite.php(8704): TApplication->runService()
#16 /home/alhedaya/public_html/fa.php(132): TApplication->run()
#17 {main}
2018-02-23 05:02 Apache/2.2.31 (Unix) PHP/5.2.17 PRADO/3.1.2a