/ Галерея зображень /
ERROR - SELECT DISTINCT SQL_CALC_FOUND_ROWS
                pr.rozdil `dirname`,
                ifnull(pr.photos_m, p.photos_m) as icon,
                ifnull(pr.photos,p.photos) as image,
                p.pidpys as main_image_title,
                pr.weight,
                count(p.photos_m) as n_images
            FROM cms8_photogalery_rozdil pr,
                 cms8_photogalery p
            WHERE pr.site_id = 20
              AND LOCATE('/',pr.rozdil) = 0
              AND p.vis
              AND p.site = 20
              AND (pr.rozdil=p.rozdil OR pr.rozdil=SUBSTRING_INDEX( p.rozdil, '/', 1 ))
            GROUP BY `dirname`
            ORDER BY pr.weight, pr.rozdil
            LIMIT 0,10;
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cms-web-serv.pr.photos_m' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

( ! ) Fatal error: Uncaught Error: Call to a member function data_seek() on bool in /var/www/cms/scripts/core/core.php on line 1935
( ! ) Error: Call to a member function data_seek() on bool in /var/www/cms/scripts/core/core.php on line 1935
Call Stack
#TimeMemoryFunctionLocation
10.0000358704{main}( ).../index.php:0
20.0028600560run( ).../index.php:82
30.0029603960include( '/var/www/cms/scripts/gallery/photogallery.php' ).../functions.php:34
40.0086664728process_template( ).../photogallery.php:121
50.0087671872Smarty->fetch( ).../page_view_functions.php:106
60.0156749744include( '/var/www/cms/cache/%%F1^F1B^F1BB2BFC%%template_photogallery.html.php' ).../Smarty.class.php:1270
70.0167753504GalleryCategory->__get( ).../%%F1^F1B^F1BB2BFC%%template_photogallery.html.php:75
80.0167753504GalleryCategory->get_list( ).../category_model.php:91
90.0167754272e::db_getrows( ).../category_model.php:255
100.0167754648e::__callStatic( ).../category_model.php:255
110.0167754648db->db_getrows( ).../core.php:69