BaseTab::reverse_md5() - APP/models/base/basetab.php, line 122
BaseTabsController::view() - APP/controllers/base/base_tabs_controller.php, line 463
TabsController::view() - APP/controllers/tabs_controller.php, line 9
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
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 'GROUP BY
ASOCIRAN.id' at line 10 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
$sql = "SELECT Orginal.id AS Orginal_id,
ASOCIRAN.id AS `Asociran.id`,
ASOCIRAN.title AS `Asociran.title`
FROM articles AS Orginal
Inner Join articles_tags AS A1 ON Orginal.id = A1.article_id
Inner Join articles_tags AS A2 ON A1.tag_id = A2.tag_id
Inner Join articles AS ASOCIRAN ON ASOCIRAN.id = A2.article_id AND ASOCIRAN.id <> Orginal.id
WHERE
Orginal.tab_id =
GROUP BY
ASOCIRAN.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 'GROUP BY
ASOCIRAN.id' at line 10"
$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::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 287
Model::query() - CORE/cake/libs/model/model.php, line 2478
BaseTab::association() - APP/models/base/basetab.php, line 187
BaseTabsController::view() - APP/controllers/base/base_tabs_controller.php, line 502
TabsController::view() - APP/controllers/tabs_controller.php, line 9
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Query: SELECT Orginal.id AS Orginal_id,
ASOCIRAN.id AS `Asociran.id`,
ASOCIRAN.title AS `Asociran.title`
FROM articles AS Orginal
Inner Join articles_tags AS A1 ON Orginal.id = A1.article_id
Inner Join articles_tags AS A2 ON A1.tag_id = A2.tag_id
Inner Join articles AS ASOCIRAN ON ASOCIRAN.id = A2.article_id AND ASOCIRAN.id <> Orginal.id
WHERE
Orginal.tab_id =
GROUP BY
ASOCIRAN.id