object(PDOException)#32 (8) { ["message":protected]=> string(267) "SQLSTATE[42000]: Syntax error or access violation: 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 projectinstances.uid ORDER BY projectinstances.name ASC' at line 31" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42000" ["file":protected]=> string(58) "/home/stormproperties/htdocs/Assembly/baconbytes/PDODB.php" ["line":protected]=> int(221) ["trace":"Exception":private]=> array(8) { [0]=> array(6) { ["file"]=> string(58) "/home/stormproperties/htdocs/Assembly/baconbytes/PDODB.php" ["line"]=> int(221) ["function"]=> string(7) "execute" ["class"]=> string(12) "PDOStatement" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [1]=> array(6) { ["file"]=> string(58) "/home/stormproperties/htdocs/Assembly/baconbytes/PDODB.php" ["line"]=> int(258) ["function"]=> string(7) "doQuery" ["class"]=> string(5) "PDODB" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> object(PDOStatement)#25 (1) { ["queryString"]=> string(1458) "SELECT projectinstances.uid, projectinstances.name AS name, projectinstances.title_ru AS title, projectinstances.description_ru AS description, projectinstances.shortdescription_ru AS shortdescription, projectinstances.image, projectinstances.seoname, projectinstances.featured, projectinstances.award, projectinstances.positionLat, projectinstances.positionLon, GROUP_CONCAT(DISTINCT projectsgallery.media) AS galleryImages, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS categories, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS catids, (SELECT GROUP_CONCAT(pi.name) FROM widgets_wallitems_link LEFT JOIN projectinstances pi ON pi.uid = widgetID WHERE wallItemID= projectinstances.uid) as award FROM projectinstances LEFT JOIN projectsgallery ON projectsgallery.Projects_uid = projectinstances.uid LEFT JOIN media_variations ON media_variations.id = projectsgallery.media LEFT JOIN projectscategorieslink ON projectscategorieslink.Projects_uid = projectinstances.uid WHERE GROUP BY projectinstances.uid ORDER BY projectinstances.name ASC " } } } [2]=> array(6) { ["file"]=> string(58) "/home/stormproperties/htdocs/Assembly/baconbytes/PDODB.php" ["line"]=> int(285) ["function"]=> string(5) "query" ["class"]=> string(5) "PDODB" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(1458) "SELECT projectinstances.uid, projectinstances.name AS name, projectinstances.title_ru AS title, projectinstances.description_ru AS description, projectinstances.shortdescription_ru AS shortdescription, projectinstances.image, projectinstances.seoname, projectinstances.featured, projectinstances.award, projectinstances.positionLat, projectinstances.positionLon, GROUP_CONCAT(DISTINCT projectsgallery.media) AS galleryImages, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS categories, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS catids, (SELECT GROUP_CONCAT(pi.name) FROM widgets_wallitems_link LEFT JOIN projectinstances pi ON pi.uid = widgetID WHERE wallItemID= projectinstances.uid) as award FROM projectinstances LEFT JOIN projectsgallery ON projectsgallery.Projects_uid = projectinstances.uid LEFT JOIN media_variations ON media_variations.id = projectsgallery.media LEFT JOIN projectscategorieslink ON projectscategorieslink.Projects_uid = projectinstances.uid WHERE GROUP BY projectinstances.uid ORDER BY projectinstances.name ASC " [1]=> array(0) { } } } [3]=> array(6) { ["file"]=> string(61) "/home/stormproperties/htdocs/application/model_core/Model.php" ["line"]=> int(79) ["function"]=> string(8) "fetchAll" ["class"]=> string(5) "PDODB" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(1458) "SELECT projectinstances.uid, projectinstances.name AS name, projectinstances.title_ru AS title, projectinstances.description_ru AS description, projectinstances.shortdescription_ru AS shortdescription, projectinstances.image, projectinstances.seoname, projectinstances.featured, projectinstances.award, projectinstances.positionLat, projectinstances.positionLon, GROUP_CONCAT(DISTINCT projectsgallery.media) AS galleryImages, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS categories, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS catids, (SELECT GROUP_CONCAT(pi.name) FROM widgets_wallitems_link LEFT JOIN projectinstances pi ON pi.uid = widgetID WHERE wallItemID= projectinstances.uid) as award FROM projectinstances LEFT JOIN projectsgallery ON projectsgallery.Projects_uid = projectinstances.uid LEFT JOIN media_variations ON media_variations.id = projectsgallery.media LEFT JOIN projectscategorieslink ON projectscategorieslink.Projects_uid = projectinstances.uid WHERE GROUP BY projectinstances.uid ORDER BY projectinstances.name ASC " } } [4]=> array(6) { ["file"]=> string(69) "/home/stormproperties/htdocs/application/models/ProjectsPageModel.php" ["line"]=> int(257) ["function"]=> string(5) "fetch" ["class"]=> string(5) "Model" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(1458) "SELECT projectinstances.uid, projectinstances.name AS name, projectinstances.title_ru AS title, projectinstances.description_ru AS description, projectinstances.shortdescription_ru AS shortdescription, projectinstances.image, projectinstances.seoname, projectinstances.featured, projectinstances.award, projectinstances.positionLat, projectinstances.positionLon, GROUP_CONCAT(DISTINCT projectsgallery.media) AS galleryImages, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS categories, GROUP_CONCAT(DISTINCT projectscategorieslink.projectcategories_uid) AS catids, (SELECT GROUP_CONCAT(pi.name) FROM widgets_wallitems_link LEFT JOIN projectinstances pi ON pi.uid = widgetID WHERE wallItemID= projectinstances.uid) as award FROM projectinstances LEFT JOIN projectsgallery ON projectsgallery.Projects_uid = projectinstances.uid LEFT JOIN media_variations ON media_variations.id = projectsgallery.media LEFT JOIN projectscategorieslink ON projectscategorieslink.Projects_uid = projectinstances.uid WHERE GROUP BY projectinstances.uid ORDER BY projectinstances.name ASC " } } [5]=> array(6) { ["file"]=> string(66) "/home/stormproperties/htdocs/application/frontend/ProjectsPage.php" ["line"]=> int(358) ["function"]=> string(19) "getDetailedProjects" ["class"]=> string(17) "ProjectsPageModel" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &array(0) { } } } [6]=> array(6) { ["file"]=> string(66) "/home/stormproperties/htdocs/application/frontend/ProjectsPage.php" ["line"]=> int(64) ["function"]=> string(20) "handleProjectFilters" ["class"]=> string(12) "ProjectsPage" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &array(1) { [0]=> string(30) "pelegrina-residential-compound" } } } [7]=> array(6) { ["file"]=> string(53) "/home/stormproperties/htdocs/application/template.php" ["line"]=> int(145) ["function"]=> string(11) "__construct" ["class"]=> string(12) "ProjectsPage" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(211) "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 projectinstances.uid ORDER BY projectinstances.name ASC' at line 31" } } Проверенное прошлое. Уверенность в будущем