$sql = "SELECT COUNT(*) AS `count` FROM `news` AS `News` WHERE `News`.`date` >= '2009-11-01' AND `News`.`date` <= '2009-11-31' AND `News`.`page_id` = 14 AND `News`.`active` = 1 "
$error = "1525: Incorrect DATE value: '2009-11-31'"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 527
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 203
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 655
Model::find() - CORE/cake/libs/model/model.php, line 2031
AppModel::paginateCount() - APP/models/app_model.php, line 685
Controller::paginate() - CORE/cake/libs/controller/controller.php, line 1071
NewsController::index() - APP/controllers/news_controller.php, line 49
Object::dispatchMethod() - CORE/cake/libs/object.php, line 122
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - CORE/www/index.php, line 88
Query: SELECT COUNT(*) AS `count` FROM `news` AS `News` WHERE `News`.`date` >= '2009-11-01' AND `News`.`date` <= '2009-11-31' AND `News`.`page_id` = 14 AND `News`.`active` = 1
Query: SELECT `News`.`id`, `News`.`page_id`, `News`.`gallery_id`, `News`.`title`, `News`.`date`, `News`.`author`, `News`.`image`, `News`.`thumb`, `News`.`lead`, `News`.`text`, `News`.`active`, `News`.`created`, `News`.`modified` FROM `news` AS `News` WHERE `News`.`date` >= '2009-11-01' AND `News`.`date` <= '2009-11-31' AND `News`.`page_id` = 14 AND `News`.`active` = 1 ORDER BY `News`.`date` DESC, `News`.`id` DESC LIMIT 10
Rok szkolny 2009-2010 - Listopad - Aktualności - Specjalny Zespół Szkolno-Przedszkolny w Rybniku