Query: SELECT News.* FROM news News WHERE News.id=giay AND News.lang='vn' LIMIT 1
Warning (512): SQL Error: 1054: Unknown column 'giay' in 'where clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 463]
Context |
Code$sql = "SELECT News.* FROM news News WHERE News.id=giay AND News.lang='vn' LIMIT 1"
$error = "1054: Unknown column 'giay' in 'where clause'"
if (($this->debug || $error) && Configure::read() > 0) {
e("<p style = \"text-align:left\"><b>Query:</b> {$sql} ");
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
} else {
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 463
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 289
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 331
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 183
Model::query() - CORE/cake/libs/model/model.php, line 1649
NewsController::view() - CORE/app/controllers/news_controller.php, line 326
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 341
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 323
[main] - CORE/app/webroot/index.php, line 83
Warning (2): Cannot modify header information - headers already sent by (output started at /home1/eshopvno/public_html/hoangty.com.vn/cake/basics.php:787) [CORE/cake/libs/controller/controller.php, line 499]
Context |
Code$url = "http://www.hoangty.com.vn/"
$status = null
$exit = false
header($status);
}
if ($url !== null) {
header('Location: ' . Router::url($url, true));
}
header - [internal], line ??
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 499
NewsController::view() - CORE/app/controllers/news_controller.php, line 329
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 341
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 323
[main] - CORE/app/webroot/index.php, line 83
Query: SELECT News.id, News.title FROM news News WHERE 1 AND News.id!=giay AND News.published=1 AND News.lang = "vn" ORDER BY News.view_order DESC, News.updated_date DESC LIMIT 10