Code |
Context$sql = "SELECT `EventAttachment`.`id`, `EventAttachment`.`title` FROM `event_attachments` AS `EventAttachment` WHERE parent_id= ORDER BY `EventAttachment`.`seq` 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 'ORDER BY `EventAttachment`.`seq` ASC' at line 1"
$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 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
PostsController::setNavigatorVariablesChild() - APP/controllers/posts_controller.php, line 183
PostsController::attachmentview() - APP/controllers/posts_controller.php, line 690
Object::dispatchMethod() - CORE/cake/libs/object.php, line 122
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 85