TDbCommand failed to execute the query SQL "SELECT c0.* FROM cms_containers as c1 WHERE c1.name like :name1 AND c0.parent_id = c1.uid LIMIT 1": SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'c0'
/var/www/freshadmin/_prado_last/framework/Data/TDbCommand.php (257)
0246: // Prado::trace('Query Row: '.$this->getDebugStatementText(), 'System.Data');
0247: if($this->_statement instanceof PDOStatement)
0248: $this->_statement->execute();
0249: else
0250: $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText());
0251: $result=$this->_statement->fetch($fetchAssociative ? PDO::FETCH_ASSOC : PDO::FETCH_NUM);
0252: $this->_statement->closeCursor();
0253: return $result;
0254: }
0255: catch(Exception $e)
0256: {
0257: throw new TDbException('dbcommand_query_failed',$e->getMessage(),$this->getDebugStatementText());
0258: }
0259: }
0260:
0261: /**
0262: * Executes the SQL statement and returns the value of the first column in the first row of data.
0263: * This is a convenient method of {@link query} when only a single scalar
0264: * value is needed (e.g. obtaining the count of the records).
0265: * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value.
0266: * @throws TDbException execution failed
0267: */
0268: public function queryScalar()
0269: {
#0 /var/www/freshadmin/_prado_last/framework/Data/DataGateway/TDataGatewayCommand.php(293): TDbCommand->queryRow()
#1 /var/www/freshadmin/_prado_last/framework/Data/ActiveRecord/TActiveRecordGateway.php(236): TDataGatewayCommand->findBySql(Object(TActiveRecordCriteria))
#2 /var/www/freshadmin/_prado_last/framework/Data/ActiveRecord/TActiveRecord.php(662): TActiveRecordGateway->findRecordBySql(Object(ContainerRecord), Object(TActiveRecordCriteria))
#3 /var/www/freshadmin/trnkateam/www/FreshSystem/FCmsModule.php(283): TActiveRecord->findBySql('SELECT c0.* FRO...', Array)
#4 /var/www/freshadmin/trnkateam/www/FreshSystem/FCmsModule.php(200): FCmsModule->getContainerByPath('trnkateam.cz/ ')
#5 /var/www/freshadmin/trnkateam/www/FreshSystem/FCmsModule.php(166): FCmsModule->getContainerOne('trnkateam.cz/ ')
#6 /var/www/freshadmin/trnkateam/www/FreshSystem/FCmsUrlMapping.php(46): FCmsModule->getContainer('trnkateam.cz/ ')
#7 /var/www/freshadmin/_prado_last/framework/Web/THttpRequest.php(622): FCmsUrlMapping->parseUrl()
#8 /var/www/freshadmin/_prado_last/framework/Web/THttpRequest.php(638): THttpRequest->parseUrl()
#9 /var/www/freshadmin/_prado_last/framework/TApplication.php(959): THttpRequest->resolveRequest(Array)
#10 /var/www/freshadmin/_prado_last/framework/TApplication.php(370): TApplication->initApplication()
#11 /var/www/freshadmin/trnkateam/www/index.php(44): TApplication->run()
#12 {main}