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 `DynamicPage`.`division_text` = 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
Code |
Context$sql = "SELECT `DynamicPage`.`id`, `DynamicPage`.`title`, `DynamicPage`.`content` FROM `dynamic_pages` AS `DynamicPage` WHERE `DynamicPage`.`division_id` = AND `DynamicPage`.`division_text` = 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 `DynamicPage`.`division_text` = 1' at line 1"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 525
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 201
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 337
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 647
Model::find() - CORE/cake/libs/model/model.php, line 1963
DynamicPagesController::division_text() - APP/controllers/dynamic_pages_controller.php, line 38
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
Object::requestAction() - CORE/cake/libs/object.php, line 100
include - APP/views/divisions/view.ctp, line 24
View::_render() - CORE/cake/libs/view/view.php, line 662
View::render() - CORE/cake/libs/view/view.php, line 376
Controller::render() - CORE/cake/libs/controller/controller.php, line 799
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 230
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Query: SELECT `DynamicPage`.`id`, `DynamicPage`.`title`, `DynamicPage`.`content` FROM `dynamic_pages` AS `DynamicPage` WHERE `DynamicPage`.`division_id` = AND `DynamicPage`.`division_text` = 1