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 `Pagina`.`publicado` = 1 AND `Pagina`.`fecha_publicacion` <= '2024-11-18' ' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 681]
$sql = "SELECT `Pagina`.`id`, `Pagina`.`parent_id`, `Pagina`.`lft`, `Pagina`.`rght`, `Pagina`.`repositorio_id`, `Pagina`.`fecha_publicacion`, `Pagina`.`share_activo`, `Pagina`.`es_distribuidora`, `Pagina`.`tiene_paginacion`, `Pagina`.`num_entradas_por_pagina`, `Pagina`.`publicado`, `Pagina`.`created`, `Pagina`.`modified` FROM `paginas` AS `Pagina` WHERE `Pagina`.`id` = AND `Pagina`.`publicado` = 1 AND `Pagina`.`fecha_publicacion` <= '2024-11-18' 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 `Pagina`.`publicado` = 1 AND `Pagina`.`fecha_publicacion` <= '2024-11-18' ' at line 1"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 681
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 820
Model::find() - CORE/cake/libs/model/model.php, line 2093
PaginasController::ver_pagina() - APP/controllers/paginas_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 88
Query: SELECT `Pagina`.`id`, `Pagina`.`parent_id`, `Pagina`.`lft`, `Pagina`.`rght`, `Pagina`.`repositorio_id`, `Pagina`.`fecha_publicacion`, `Pagina`.`share_activo`, `Pagina`.`es_distribuidora`, `Pagina`.`tiene_paginacion`, `Pagina`.`num_entradas_por_pagina`, `Pagina`.`publicado`, `Pagina`.`created`, `Pagina`.`modified` FROM `paginas` AS `Pagina` WHERE `Pagina`.`id` = AND `Pagina`.`publicado` = 1 AND `Pagina`.`fecha_publicacion` <= '2024-11-18' LIMIT 1
Warning (2): Invalid argument supplied for foreach() [APP/models/behaviors/formato_fechas.php, line 21]
FormatoFechasBehavior::afterFind() - APP/models/behaviors/formato_fechas.php, line 21
ModelBehavior::dispatchMethod() - CORE/cake/libs/model/model_behavior.php, line 171
BehaviorCollection::trigger() - CORE/cake/libs/model/model_behavior.php, line 494
Model::__filterResults() - CORE/cake/libs/model/model.php, line 2339
Model::find() - CORE/cake/libs/model/model.php, line 2097
PaginasController::ver_pagina() - APP/controllers/paginas_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 88