Notice (8): Undefined offset: 0 [APP/models/base/basetab.php, line 122]
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]

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

Т.А. Палас Битола