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 '=
[CORE/cake/libs/model/datasources/dbo_source.php, line 684]
$sql = "SELECT `SiteAgenda`.`id`, `SiteAgenda`.`title`, `SiteAgenda`.`id_system`, `SiteAgenda`.`description`, `SiteAgenda`.`created`, `SiteAgenda`.`final`, `SiteAgenda`.`modified`, `SiteAgenda`.`status`, `SiteAgenda`.`home`, `SiteAgenda`.`idioma`, `SiteAgenda`.`image`, `SiteAgenda`.`tipo` FROM `events` AS `SiteAgenda` WHERE `SiteAgenda`.`id_system`=6 AND `SiteAgenda`.`tipo`="Agenda" AND `SiteAgenda`.`status`="Ativo" AND `SiteAgenda`.`id`=<pre class= 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 '=<pre class= LIMIT 1' 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
SiteAgendasController::id() - APP/controllers/site_agendas_controller.php, line 39
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 87
Query: SELECT `SiteAgenda`.`id`, `SiteAgenda`.`title`, `SiteAgenda`.`id_system`, `SiteAgenda`.`description`, `SiteAgenda`.`created`, `SiteAgenda`.`final`, `SiteAgenda`.`modified`, `SiteAgenda`.`status`, `SiteAgenda`.`home`, `SiteAgenda`.`idioma`, `SiteAgenda`.`image`, `SiteAgenda`.`tipo` FROM `events` AS `SiteAgenda` WHERE `SiteAgenda`.`id_system`=6 AND `SiteAgenda`.`tipo`="Agenda" AND `SiteAgenda`.`status`="Ativo" AND `SiteAgenda`.`id`=
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 '=
[CORE/cake/libs/model/datasources/dbo_source.php, line 684]
$sql = "SELECT `AdminPhoto`.`id`, `AdminPhoto`.`id_system`, `AdminPhoto`.`id_iten`, `AdminPhoto`.`table`, `AdminPhoto`.`name`, `AdminPhoto`.`order`, `AdminPhoto`.`image`, `AdminPhoto`.`created`, `AdminPhoto`.`modified`, `AdminPhoto`.`status` FROM `photos` AS `AdminPhoto` WHERE `AdminPhoto`.`status`="Ativo" And `AdminPhoto`.`table`="agenda" AND `AdminPhoto`.`id_iten`=<pre class= ORDER BY `AdminPhoto`.`order` ASC "
$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 '=<pre class= ORDER BY `AdminPhoto`.`order` ASC' 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
SiteAgendasController::id() - APP/controllers/site_agendas_controller.php, line 52
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 87
Query: SELECT `AdminPhoto`.`id`, `AdminPhoto`.`id_system`, `AdminPhoto`.`id_iten`, `AdminPhoto`.`table`, `AdminPhoto`.`name`, `AdminPhoto`.`order`, `AdminPhoto`.`image`, `AdminPhoto`.`created`, `AdminPhoto`.`modified`, `AdminPhoto`.`status` FROM `photos` AS `AdminPhoto` WHERE `AdminPhoto`.`status`="Ativo" And `AdminPhoto`.`table`="agenda" AND `AdminPhoto`.`id_iten`=
include - APP/views/site_agendas/id.ctp, line 48
View::_render() - CORE/cake/libs/view/view.php, line 724
View::render() - CORE/cake/libs/view/view.php, line 419
Controller::render() - CORE/cake/libs/controller/controller.php, line 913
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 87