# [03-Oct-2025 07:57:08] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 07:58:36] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 07:58:38] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:00:51] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:01:48] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:02:17] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:02:32] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:03:11] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
# [03-Oct-2025 08:10:52] /sterimar/www/ 108.61.209.243

set names utf8

SELECT
                `ID`,
                `UploadID`,
                `Images`,
                `Title`,
                `URL`
            FROM
                `slides`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `Visible` = 1
            ORDER BY `PostDate` DESC

SELECT
                *
	        FROM
	        	`meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
	    	WHERE
                `meta`.`Language` = 'bg' AND
                `meta`.`Module` = 'pages' AND
	    		`meta`.`URLLabel` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                P2.`Language`,
                P2.`URLLabel`
            FROM
                `meta` AS P1
                INNER JOIN `meta` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P1.`Module` = P2.`Module` AND
                    P2.`NoIndex` = 0 AND
                    P2.`Language` != 'bg' AND
                    P2.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Module` = 'pages' AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'products' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `groups`.`Image`,
                `meta`.`URLLabel`,
                `groups`.`Title`,
                `groups`.`Annotation`,
                `groups`.`Color`,
                `meta`.`Visible`
            FROM
                `groups`
                INNER JOIN `meta` ON
                    `groups`.`ID` = `meta`.`ID` AND
                    `groups`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'groups'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `groups`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewProduct','LAllProducts') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Content`,
                `Limit`
            FROM
                `blocks`
            WHERE
                `Language` = 'bg' AND
                `Module` = 'articles' AND
                `Action` = 'home'
         AND `Visible` = 1 LIMIT 1

SELECT
                `meta`.`ID`,
                `meta`.`PostDate`,
                `meta`.`UploadID`,
                `articles`.`Image`,
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `articles`.`Title`,
                `articles`.`Annotation`,
                `articles`.`Color`,
                `articles`.`Label`,
                `meta`.`Visible`
            FROM
                `articles`
                INNER JOIN `meta` ON
                    `articles`.`ID` = `meta`.`ID` AND
                    `articles`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'articles'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'articles'
            WHERE
                `meta`.`Language` = 'bg'
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `articles`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC
         LIMIT 0, 4

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LViewAll') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT * FROM `instagram` WHERE `Language` = 'bg' AND `Visible` = 1 ORDER BY `PostDate` DESC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('InstagramURL','LViewMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `meta`.`Module`,
                `pages`.`MenuLabel`,
                `pages`.`FooterLabel`,
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg' AND
                (`pages`.`MenuLabel` <> '' OR `pages`.`FooterLabel` <> '') AND
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`)
         AND `meta`.`Visible` = 1
            GROUP BY
                `pages`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `gama`.`UploadID`,
                `gama`.`MenuLabel`,
                `gama`.`Icon`,
                `gama`.`Color`,
                GROUP_CONCAT(`products`.`ID`) AS `ProductIDs`
            FROM
                `gama`
                INNER JOIN `product_gama` ON `gama`.`ID` = `product_gama`.`GamaID`
                INNER JOIN `products` ON `products`.`ID` = `product_gama`.`ProductID`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
            WHERE
                `gama`.`Language` = 'bg' AND
                `products`.`Language` = 'bg'
         AND
                `gama`.`Visible` = 1 AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `gama`.`ID`
            ORDER BY
                `gama`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10001','10000')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10005','10004')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`) AS `URLLabels`,
                `products`.`Title` AS `MenuLabel` -- TODO: add MenuLabel in table
            FROM
                `products`
                INNER JOIN `meta` ON
                    `products`.`ID` = `meta`.`ID` AND
                    `products`.`Language` = `meta`.`Language` AND
                    `meta`.`Module` = 'products'
                INNER JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language` AND
                    `Parent`.`Module` = 'products'
            WHERE
                `meta`.`Language` = 'bg' AND
                `products`.`ID` IN('10002','10003')
         AND
                `meta`.`Visible` = 1
            
            GROUP BY
                `products`.`ID`
            ORDER BY
                `meta`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOurCommitments','Address','LContacts','LFollowUs','FacebookURL','Copyright','MGAlt','MGLabel','MGURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                IF(`Parent`.`URLLabel` = 'index', `meta`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `meta`.`URLLabel`)) AS `URLLabel`
            FROM
                `meta`
                INNER JOIN `pages` ON
                    `pages`.`ID` = `meta`.`ID` AND
                    `pages`.`Language` = `meta`.`Language`
                LEFT JOIN `meta` AS `Parent` ON
                    `meta`.`ParentID` = `Parent`.`ID` AND
                    `meta`.`Language` = `Parent`.`Language`
            WHERE
                (`meta`.`Module` = 'pages' OR `Parent`.`Module` = 'pages' OR `meta`.`Module` = `Parent`.`Module`) AND
                `pages`.`Language` = 'bg' AND
                `meta`.`Module` = 'contacts' AND
                `pages`.`Action` = 'index'
         AND `meta`.`Visible` = 1 LIMIT 1
