Notice: Undefined property: DConfig::$galleryMenuPntsCount in /var/www/html/modules/menu.dbp on line 402

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/modules/menu.dbp:402) in /var/www/html/kernel/functions.dbp on line 100
************************************************************************************************************************
SELECT
                o.`id`,
                o.`image`,
                o.`name`,			
                o.`alias`,
                o.`image`,
                date_format(o.`updated`, '%m') as `mon`,
                date_format(o.`updated`, '%e') as `day`,
                date_format(o.`updated`, '%Y') as `year`,
                date_format(o.`updated`, '%H:%i') as `time`,
                CASE WHEN i.`id` IS NOT NULL THEN count(*) ELSE 0 END as count_images
            FROM
                `dbdrive_gallery` as o
            LEFT JOIN `dbdrive_images` as i ON i.`pid` = o.`id`
            WHERE
                o.`tree_id` = '83' AND 
                o.`active` = 1
            ORDER BY
                o.`ord`
            LIMIT
************************************************************************************************************************
************************************************************************************************************************
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 '' at line 20
************************************************************************************************************************

Notice: Trying to get property of non-object in /var/www/html/kernel/databaseMysqli.class.dbp on line 387

Notice: Trying to get property of non-object in /var/www/html/kernel/databaseMysqli.class.dbp on line 387
SELECT o.`id`, o.`image`, o.`name`, o.`alias`, o.`image`, date_format(o.`updated`, '%m') as `mon`, date_format(o.`updated`, '%e') as `day`, date_format(o.`updated`, '%Y') as `year`, date_format(o.`updated`, '%H:%i') as `time`, CASE WHEN i.`id` IS NOT NULL THEN count(*) ELSE 0 END as count_images FROM `dbdrive_gallery` as o LEFT JOIN `dbdrive_images` as i ON i.`pid` = o.`id` WHERE o.`tree_id` = '83' AND o.`active` = 1 ORDER BY o.`ord` LIMIT 3