1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right 1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right 451 : #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 '[*gallery*]) AND (SELECT count(*) FROM modx_easy2_files F WHERE F.dir_id IN (...' at line 1 SELECT COUNT(DISTINCT d.cat_id) FROM modx_easy2_dirs AS d WHERE d.parent_id IN ([*gallery*]) AND (SELECT count(*) FROM modx_easy2_files F WHERE F.dir_id IN (SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE (B.cat_id = d.cat_id AND A.cat_left >= B.cat_left AND A.cat_right <= B.cat_right AND A.cat_level >= B.cat_level AND A.cat_visible = 1)))<>0 AND d.cat_visible=1 1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right 552 : #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 '[*gallery*]) AND (SELECT count(*) FROM modx_easy2_files F WHERE F.dir_id IN (...' at line 1 SELECT d.* FROM modx_easy2_dirs AS d WHERE d.parent_id IN ([*gallery*]) AND (SELECT count(*) FROM modx_easy2_files F WHERE F.dir_id IN (SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE (B.cat_id = d.cat_id AND A.cat_left >= B.cat_left AND A.cat_right <= B.cat_right AND A.cat_level >= B.cat_level AND A.cat_visible = 1)))<>0 AND d.cat_visible=1 ORDER BY cat_name DESC LIMIT 0, 8 1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right 413 : damn#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 '[*gallery*]) AND status = 1 ORDER BY date_added ASC LIMIT 0, 8' at line 1 SELECT * FROM modx_easy2_files WHERE dir_id IN ([*gallery*]) AND status = 1 ORDER BY date_added ASC LIMIT 0, 8 2351 : #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 '[*gallery*])' at line 1 SELECT * FROM modx_easy2_dirs WHERE cat_id IN([*gallery*]) 2351 : #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 '[*gallery*])' at line 1 SELECT * FROM modx_easy2_dirs WHERE cat_id IN([*gallery*]) 1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right 2429 : #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 '[*gallery*]) AND b.cat_visible = 1 ) AND a.cat_visible = 1 AND (SELECT count(...' at line 1 SELECT a.* FROM modx_easy2_dirs a WHERE a.parent_id IN (SELECT b.parent_id FROM modx_easy2_dirs b WHERE b.cat_id IN ([*gallery*]) AND b.cat_visible = 1 ) AND a.cat_visible = 1 AND (SELECT count(F.id) FROM modx_easy2_files F WHERE F.dir_id IN (SELECT c.cat_id FROM modx_easy2_dirs c, modx_easy2_dirs d WHERE (d.cat_id = a.cat_id AND c.cat_left >= d.cat_left AND c.cat_right <= d.cat_right AND c.cat_level >= d.cat_level AND c.cat_visible = 1)))<>0 ORDER BY a.cat_name DESC 2429 : #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 '[*gallery*]) AND b.cat_visible = 1 ) AND a.cat_visible = 1 AND (SELECT count(...' at line 1 SELECT a.* FROM modx_easy2_dirs a WHERE a.parent_id IN (SELECT b.parent_id FROM modx_easy2_dirs b WHERE b.cat_id IN ([*gallery*]) AND b.cat_visible = 1 ) AND a.cat_visible = 1 AND (SELECT count(F.id) FROM modx_easy2_files F WHERE F.dir_id IN (SELECT c.cat_id FROM modx_easy2_dirs c, modx_easy2_dirs d WHERE (d.cat_id = a.cat_id AND c.cat_left >= d.cat_left AND c.cat_right <= d.cat_right AND c.cat_level >= d.cat_level AND c.cat_visible = 1)))<>0 ORDER BY a.cat_name DESC 1946 : #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 '[*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right' at line 1 SELECT A.cat_id FROM modx_easy2_dirs A, modx_easy2_dirs B WHERE B.cat_id IN ([*gallery*]) AND A.cat_left BETWEEN B.cat_left AND B.cat_right Error