PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND
(i1.id IS NOT NULL OR i2.id IS NOT NULL) AND
c.id <> '144657'
GROUP BY' at line 27
Stack trace:
at /srv/www/globalplaza.hu/gothic/db/pdo.php:44
0# /srv/www/globalplaza.hu/gothic/db/pdo.php:44: PDOStatement->execute()
1# /srv/www/globalplaza.hu/gothic/common.php:1080: GtcPDO->smartQuery("(SELECT c.id, c.name, c.lead, c.mode, c.ts_display, c.ts_create,
i1.id AS id_img_old, i1.medium_ext AS old_img_ext, i1.res_name AS old_img_res_name,
i2.id AS id_img_box, i2.small_ext AS box_img_ext, i2.res_name AS box_img_res_name
FROM gp3_content c
INNER JOIN gp3_j_menu_content jmc ON jmc.id_content = c.id
LEFT OUTER JOIN gp3_image i1 ON i1.id ... )
ORDER BY ts_display DESC, ts_create DESC
LIMIT 3", array(3))
2# /srv/www/globalplaza.hu/ctempl/article.jarl.php:508: GtcQueryIterator->start()
3# /srv/www/globalplaza.hu/gothic/common.php:538: include("/srv/www/globalplaza.hu/ctempl/article.jarl.php")
4# /srv/www/globalplaza.hu/gothic/common.php:800: Template->_render()
5# /srv/www/globalplaza.hu/ctempl/frame.jarl.php:514: CachedFilteredTemplate->render(Object(SiteFrameTemplate))
6# /srv/www/globalplaza.hu/gothic/common.php:538: include("/srv/www/globalplaza.hu/ctempl/frame.jarl.php")
7# /srv/www/globalplaza.hu/gothic/common.php:800: Template->_render()
8# /srv/www/globalplaza.hu/modules/frame.php:324: CachedFilteredTemplate->render()
9# /srv/www/globalplaza.hu/article.php:195: SiteFrame("Article")