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 'LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
$sql = "SELECT `DestinoRegiao`.`nome`, `DestinoRegiao`.`id_destino_regiao`, `DestinoRegiao`.`style`, `DestinoPais`.`nome`, `DestinoPais`.`id_destino_pais` FROM `trz_destino_paises` AS `DestinoPais` LEFT JOIN `trz_melhores_epocas` AS `MelhorEpoca` ON (`DestinoPais`.`id_melhor_epoca` = `MelhorEpoca`.`id_melhor_epoca`) LEFT JOIN `trz_destino_regioes` AS `DestinoRegiao` ON (`DestinoPais`.`id_destino_regiao` = `DestinoRegiao`.`id_destino_regiao`) WHERE `DestinoPais`.`id_destino_pais`= 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 'LIMIT 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 1961 DestinoRoteirosController::index() - APP/controllers/destino_roteiros_controller.php, line 11 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 [main] - APP/webroot/index.php, line 88
Query: SELECT `DestinoRegiao`.`nome`, `DestinoRegiao`.`id_destino_regiao`, `DestinoRegiao`.`style`, `DestinoPais`.`nome`, `DestinoPais`.`id_destino_pais` FROM `trz_destino_paises` AS `DestinoPais` LEFT JOIN `trz_melhores_epocas` AS `MelhorEpoca` ON (`DestinoPais`.`id_melhor_epoca` = `MelhorEpoca`.`id_melhor_epoca`) LEFT JOIN `trz_destino_regioes` AS `DestinoRegiao` ON (`DestinoPais`.`id_destino_regiao` = `DestinoRegiao`.`id_destino_regiao`) WHERE `DestinoPais`.`id_destino_pais`= LIMIT 1

