Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and `Article`.`category_id` = and (`Article`.`created` < "" or (`Article`.`crea' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
$sql = "SELECT `Article`.`id`, `Article`.`created`, `Article`.`title`, `Article`.`brief`, `Article`.`short_text`, `Article`.`text`, `Article`.`link_name`, `Article`.`type_id`, `Article`.`category_id`, `Article`.`meta_keywords`, `Article`.`meta_description`, `Category`.`id`, `Category`.`onTop`, `Category`.`active`, `Category`.`weight`, `Category`.`title`, `Category`.`short_title`, `Category`.`link_name`, `Category`.`description`, `Category`.`image`, `Category`.`created`, `Category`.`modified`, `Category`.`meta_keywords`, `Category`.`meta_description` FROM `articles` AS `Article` LEFT JOIN `categories` AS `Category` ON (`Article`.`category_id` = `Category`.`id`) WHERE `Article`.`type_id` = and `Article`.`category_id` = and (`Article`.`created` < "" or (`Article`.`created` = "" and `Article`.`id` < )) ORDER BY `Article`.`created` DESC, `Article`.`id` DESC LIMIT 1"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and `Article`.`category_id` = and (`Article`.`created` < "" or (`Article`.`crea' at line 1"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 823
Model::find() - CORE/cake/libs/model/model.php, line 2127
ArticlesController::view() - APP/controllers/articles_controller.php, line 60
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Query: SELECT `Article`.`id`, `Article`.`created`, `Article`.`title`, `Article`.`brief`, `Article`.`short_text`, `Article`.`text`, `Article`.`link_name`, `Article`.`type_id`, `Article`.`category_id`, `Article`.`meta_keywords`, `Article`.`meta_description`, `Category`.`id`, `Category`.`onTop`, `Category`.`active`, `Category`.`weight`, `Category`.`title`, `Category`.`short_title`, `Category`.`link_name`, `Category`.`description`, `Category`.`image`, `Category`.`created`, `Category`.`modified`, `Category`.`meta_keywords`, `Category`.`meta_description` FROM `articles` AS `Article` LEFT JOIN `categories` AS `Category` ON (`Article`.`category_id` = `Category`.`id`) WHERE `Article`.`type_id` = and `Article`.`category_id` = and (`Article`.`created` < "" or (`Article`.`created` = "" and `Article`.`id` < )) ORDER BY `Article`.`created` DESC, `Article`.`id` DESC LIMIT 1
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and `Article`.`category_id` = and (`Article`.`created` > "" or (`Article`.`crea' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
$sql = "SELECT `Article`.`id`, `Article`.`created`, `Article`.`title`, `Article`.`brief`, `Article`.`short_text`, `Article`.`text`, `Article`.`link_name`, `Article`.`type_id`, `Article`.`category_id`, `Article`.`meta_keywords`, `Article`.`meta_description`, `Category`.`id`, `Category`.`onTop`, `Category`.`active`, `Category`.`weight`, `Category`.`title`, `Category`.`short_title`, `Category`.`link_name`, `Category`.`description`, `Category`.`image`, `Category`.`created`, `Category`.`modified`, `Category`.`meta_keywords`, `Category`.`meta_description` FROM `articles` AS `Article` LEFT JOIN `categories` AS `Category` ON (`Article`.`category_id` = `Category`.`id`) WHERE `Article`.`type_id` = and `Article`.`category_id` = and (`Article`.`created` > "" or (`Article`.`created` = "" and `Article`.`id` > )) ORDER BY `Article`.`created` ASC, `Article`.`id` ASC LIMIT 1"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and `Article`.`category_id` = and (`Article`.`created` > "" or (`Article`.`crea' at line 1"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 823
Model::find() - CORE/cake/libs/model/model.php, line 2127
ArticlesController::view() - APP/controllers/articles_controller.php, line 68
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Query: SELECT `Article`.`id`, `Article`.`created`, `Article`.`title`, `Article`.`brief`, `Article`.`short_text`, `Article`.`text`, `Article`.`link_name`, `Article`.`type_id`, `Article`.`category_id`, `Article`.`meta_keywords`, `Article`.`meta_description`, `Category`.`id`, `Category`.`onTop`, `Category`.`active`, `Category`.`weight`, `Category`.`title`, `Category`.`short_title`, `Category`.`link_name`, `Category`.`description`, `Category`.`image`, `Category`.`created`, `Category`.`modified`, `Category`.`meta_keywords`, `Category`.`meta_description` FROM `articles` AS `Article` LEFT JOIN `categories` AS `Category` ON (`Article`.`category_id` = `Category`.`id`) WHERE `Article`.`type_id` = and `Article`.`category_id` = and (`Article`.`created` > "" or (`Article`.`created` = "" and `Article`.`id` > )) ORDER BY `Article`.`created` ASC, `Article`.`id` ASC LIMIT 1