Code |
Context$sql = "SELECT COUNT(`PhotoItem`.`id`) as pocet FROM `photo_events` AS `PhotoEvent` LEFT JOIN `users` AS `User` ON (`PhotoEvent`.`user_id` = `User`.`id`) WHERE YEAR(datum) = '2010' LIMIT 1"
$error = "1054: Unknown column 'PhotoItem.id' in 'field list'"
$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 527
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 203
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 655
Model::find() - CORE/cake/libs/model/model.php, line 2031
PhotoEvent::index() - APP/models/photo_event.php, line 35
PhotoEventsController::index() - APP/controllers/photo_events_controller.php, line 12
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88