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 `Foto`.`tipo_id` = 3 ORDER BY `Foto`.`fecha_alta` DESC, `Foto`.`pie_foto`' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
$sql = "SELECT `Foto`.`id`, `Foto`.`area_id`, `Foto`.`pie_foto`, `Foto`.`fecha_alta`, `Foto`.`tipo_id`, `Foto`.`autor_id`, `Foto`.`copyright`, `Foto`.`enlace_fichero_p`, `Foto`.`fichero_tamano_p`, `Foto`.`enlace_fichero_pv`, `Foto`.`fichero_tamano_pv`, `Foto`.`enlace_fichero_m`, `Foto`.`fichero_tamano_m`, `Foto`.`enlace_fichero_mv`, `Foto`.`fichero_tamano_mv`, `Foto`.`enlace_fichero_g`, `Foto`.`fichero_tamano_g`, `Foto`.`enlace_fichero_gv`, `Foto`.`fichero_tamano_gv`, `Foto`.`activo` FROM `archivo_fotos` AS `Foto` WHERE `Foto`.`autor_id` = AND `Foto`.`tipo_id` = 3 ORDER BY `Foto`.`fecha_alta` DESC, `Foto`.`pie_foto` 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 'AND `Foto`.`tipo_id` = 3 ORDER BY `Foto`.`fecha_alta` DESC, `Foto`.`pie_foto`' at line 1"
$out = null
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 336
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 653
Model::find() - CORE/cake/libs/model/model.php, line 1988
AutoresController::ver() - APP/controllers/autores_controller.php, line 75
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
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 `Foto`.`id`, `Foto`.`area_id`, `Foto`.`pie_foto`, `Foto`.`fecha_alta`, `Foto`.`tipo_id`, `Foto`.`autor_id`, `Foto`.`copyright`, `Foto`.`enlace_fichero_p`, `Foto`.`fichero_tamano_p`, `Foto`.`enlace_fichero_pv`, `Foto`.`fichero_tamano_pv`, `Foto`.`enlace_fichero_m`, `Foto`.`fichero_tamano_m`, `Foto`.`enlace_fichero_mv`, `Foto`.`fichero_tamano_mv`, `Foto`.`enlace_fichero_g`, `Foto`.`fichero_tamano_g`, `Foto`.`enlace_fichero_gv`, `Foto`.`fichero_tamano_gv`, `Foto`.`activo` FROM `archivo_fotos` AS `Foto` WHERE `Foto`.`autor_id` = AND `Foto`.`tipo_id` = 3 ORDER BY `Foto`.`fecha_alta` DESC, `Foto`.`pie_foto` Asc
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 '' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
$sql = "select id, director, autor, generos, ano, titulo from unidades_cine as peliculas where unidad_tipo_id = 14 and fecha_publica <= curdate() and autor_id = "
$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 '' at line 1"
$out = null
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 336
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 220
Model::query() - CORE/cake/libs/model/model.php, line 2317
AutoresController::ver() - APP/controllers/autores_controller.php, line 94
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
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 id, director, autor, generos, ano, titulo from unidades_cine as peliculas where unidad_tipo_id = 14 and fecha_publica <= curdate() and autor_id =