-
2012
-
10.03.2012
Petr
-
17.08.2012
Martin Hruška
-
23.12.2012
Ladislav Pošmura
-
Warning (512): SQL Error: 1054: Unknown column 'PhotoItem.id' in 'field list' [CORE/cake/libs/model/datasources/dbo_source.php, line 527]
$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) = '2012' 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
app/models/photo_event.php (line 36)Query: 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) = '2012' LIMIT 1
10.03.2012
Petr
17.08.2012
Martin Hruška
23.12.2012
Ladislav Pošmura