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 `Eventcomment`.`hidden` = false ORDER BY `Eventcomment`.`created` DESC' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]Code |
Context
if ($this->error) {
$this->showQuery($sql);
$sql = "SELECT `Eventcomment`.`id`, `Eventcomment`.`user_id`, `Eventcomment`.`event_id`, `Eventcomment`.`text`, `Eventcomment`.`hidden`, `Eventcomment`.`created`, `Eventcomment`.`modified`, `User`.`id`, `User`.`firstname`, `User`.`lastname`, `User`.`username`, `User`.`password`, `User`.`email`, `User`.`group_id`, `User`.`fromcubodo`, `User`.`cubodo_disable_messages`, `User`.`disabled`, `User`.`deleted`, `User`.`created`, `User`.`modified`, `User`.`lastlogin`, `Event`.`id`, `Event`.`title`, `Event`.`description`, `Event`.`image_url`, `Event`.`image_thumb_url`, `Event`.`link_url`, `Event`.`term`, `Event`.`hidden`, `Event`.`created`, `Event`.`modified`, `Event`.`short_desc`, `Event`.`intervalmode`, `Event`.`location`, `Event`.`terms_of_use`, `Event`.`status`, `Event`.`duration` FROM `eventcomments` AS `Eventcomment` LEFT JOIN `users` AS `User` ON (`Eventcomment`.`user_id` = `User`.`id`) LEFT JOIN `events` AS `Event` ON (`Eventcomment`.`event_id` = `Event`.`id`) WHERE `Eventcomment`.`event_id` = AND `Eventcomment`.`hidden` = false ORDER BY `Eventcomment`.`created` DESC "
$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 `Eventcomment`.`hidden` = false ORDER BY `Eventcomment`.`created` DESC' 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 821
Model::find() - CORE/cake/libs/model/model.php, line 2142
EventsController::view() - APP/controllers/events_controller.php, line 60
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 84
Query: SELECT `Eventcomment`.`id`, `Eventcomment`.`user_id`, `Eventcomment`.`event_id`, `Eventcomment`.`text`, `Eventcomment`.`hidden`, `Eventcomment`.`created`, `Eventcomment`.`modified`, `User`.`id`, `User`.`firstname`, `User`.`lastname`, `User`.`username`, `User`.`password`, `User`.`email`, `User`.`group_id`, `User`.`fromcubodo`, `User`.`cubodo_disable_messages`, `User`.`disabled`, `User`.`deleted`, `User`.`created`, `User`.`modified`, `User`.`lastlogin`, `Event`.`id`, `Event`.`title`, `Event`.`description`, `Event`.`image_url`, `Event`.`image_thumb_url`, `Event`.`link_url`, `Event`.`term`, `Event`.`hidden`, `Event`.`created`, `Event`.`modified`, `Event`.`short_desc`, `Event`.`intervalmode`, `Event`.`location`, `Event`.`terms_of_use`, `Event`.`status`, `Event`.`duration` FROM `eventcomments` AS `Eventcomment` LEFT JOIN `users` AS `User` ON (`Eventcomment`.`user_id` = `User`.`id`) LEFT JOIN `events` AS `Event` ON (`Eventcomment`.`event_id` = `Event`.`id`) WHERE `Eventcomment`.`event_id` = AND `Eventcomment`.`hidden` = false ORDER BY `Eventcomment`.`created` DESC
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mobilegamelab.net/httpdocs/cake/libs/debugger.php:686) [CORE/cake/libs/controller/controller.php, line 742]Code |
Context */
function header($status) {
header($status);
$status = "Location: http://www.mobilegamelab.de/events"
header - [internal], line ??
Controller::header() - CORE/cake/libs/controller/controller.php, line 742
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 721
AppController::redirect() - APP/app_controller.php, line 173
EventsController::view() - APP/controllers/events_controller.php, line 65
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 84