# [24-Jun-2024 09:44:32] /activa/www/bg/актива-асет-мениджмънт.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    *,
                    CONCAT('pages/', `UploadID`, '/i_', `Image`) AS `HeaderImage`
    	        FROM
    	        	`pages`
    	    	WHERE
                    -- `ParentID` = 1 AND // TODO: full test
                    `Language` = 'bg' AND
                    `Module` = 'pages' AND
    	    		`URLLabel` = 'актива-асет-мениджмънт'
             AND `Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    P2.`URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 09:44:36] /activa/www/bg/актива-асет-мениджмънт/финансови-отчети.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'финансови-отчети' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'финансови-отчети'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'финансови-отчети' AND
                    P1.`Visible` = 1

SELECT * FROM `reports` WHERE `Language` = 'bg' AND `PageID` = 39 AND `Visible` = 1 ORDER BY `Year` DESC, `PostDate` DESC

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

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'финансови-отчети'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 09:44:44] /activa/www/bg/актива-асет-мениджмънт/документи.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'документи' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'документи'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'документи' AND
                    P1.`Visible` = 1

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

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'документи'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:32:40] /activa/www/bg/актива-асет-мениджмънт/финансови-отчети.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'финансови-отчети' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'финансови-отчети'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'финансови-отчети' AND
                    P1.`Visible` = 1

SELECT * FROM `reports` WHERE `Language` = 'bg' AND `PageID` = 39 AND `Visible` = 1 ORDER BY `Year` DESC, `PostDate` DESC

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

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'финансови-отчети'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:32:43] /activa/www/ 108.61.209.243

set names utf8

SELECT
                    *,
                    CONCAT('pages/', `UploadID`, '/i_', `Image`) AS `HeaderImage`
    	        FROM
    	        	`pages`
    	    	WHERE
                    -- `ParentID` = 1 AND // TODO: full test
                    `Language` = 'bg' AND
                    `Module` = 'pages' AND
    	    		`URLLabel` = 'index'
             AND `Visible` = 1 LIMIT 1

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

SELECT
                `P1`.`UploadID`,
                `P1`.`URLLabel`,
                `P1`.`Icon`,
                `P1`.`Image`,
                `P1`.`MenuLabel`,
                `P1`.`Annotation`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
            WHERE
                `P1`.`Icon` <> '' AND
                `P1`.`Image` <> '' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Language` = 'bg' AND
                `P1`.`FirstPage` = 1 AND
                `P1`.`Visible` = 1
            ORDER BY `P1`.`PostDate` ASC

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

SELECT `MetaTitle` FROM `pages` WHERE`ID` = 1 AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Fund`,
                `PostDate` + INTERVAL - 1 DAY AS `Date1`,
                `PostDate`,
                `NsaPerShare`,
                `NSA`,
                `Shares`,
                `YearBegin`,
                `YearAgo`,
                `Deviation`
            FROM
                `assets`
            WHERE
                `ID` IN (SELECT MAX(`ID`) FROM `assets` GROUP BY `Fund`)
             ORDER BY `PostDate` DESC

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

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

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

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

SELECT
                    IF(P1.`URLLabel` <> '', CONCAT(P1.`URLLabel`, '/', P2.`URLLabel`), P2.`URLLabel`) AS `URL`
                FROM
                    `pages` P2
                    LEFT JOIN `pages` P1 ON
                        P2.`ParentID` > 1 AND
                        P1.`ID` = P2.`ParentID` AND
                        P1.`Language` = P2.`Language` AND
                        P1.`Visible` = P2.`Visible`
                WHERE
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'events'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                `PostDate`,
                `URLLabel`,
                `Title`,
                `Annotation`
            FROM
                `events`
            WHERE
                `Language` = 'bg' AND
                `FirstPage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
            LIMIT 3

SELECT `Annotation` FROM `pages` WHERE`Module` = 'events' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

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

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

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

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

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:37:49] /activa/www/bg/актива-европейска-стратегия/инвестиционна-стратегия.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-европейска-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'инвестиционна-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-европейска-стратегия' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'инвестиционна-стратегия'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'инвестиционна-стратегия' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-европейска-стратегия'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'инвестиционна-стратегия'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 66
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:37:51] /activa/www/bg/актива-европейска-стратегия/инвестиционна-стратегия.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-европейска-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'инвестиционна-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-европейска-стратегия' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'инвестиционна-стратегия'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'инвестиционна-стратегия' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-европейска-стратегия'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'инвестиционна-стратегия'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 66
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:37:57] /activa/www/bg/ajax/cookies.html?_=1719236270306 108.61.209.243

set names utf8

SELECT `URLLabel` FROM `pages` WHERE`Module` = 'terms' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('TextCookies','LUnderstood') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:47] /activa/www/bg/актива-асет-мениджмънт/финансови-отчети.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'финансови-отчети' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'финансови-отчети'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'финансови-отчети' AND
                    P1.`Visible` = 1

SELECT * FROM `reports` WHERE `Language` = 'bg' AND `PageID` = 39 AND `Visible` = 1 ORDER BY `Year` DESC, `PostDate` DESC

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

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'финансови-отчети'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:50] /activa/www/ 108.61.209.243

set names utf8

SELECT
                    *,
                    CONCAT('pages/', `UploadID`, '/i_', `Image`) AS `HeaderImage`
    	        FROM
    	        	`pages`
    	    	WHERE
                    -- `ParentID` = 1 AND // TODO: full test
                    `Language` = 'bg' AND
                    `Module` = 'pages' AND
    	    		`URLLabel` = 'index'
             AND `Visible` = 1 LIMIT 1

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

SELECT
                `P1`.`UploadID`,
                `P1`.`URLLabel`,
                `P1`.`Icon`,
                `P1`.`Image`,
                `P1`.`MenuLabel`,
                `P1`.`Annotation`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
            WHERE
                `P1`.`Icon` <> '' AND
                `P1`.`Image` <> '' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Language` = 'bg' AND
                `P1`.`FirstPage` = 1 AND
                `P1`.`Visible` = 1
            ORDER BY `P1`.`PostDate` ASC

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

SELECT `MetaTitle` FROM `pages` WHERE`ID` = 1 AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Fund`,
                `PostDate` + INTERVAL - 1 DAY AS `Date1`,
                `PostDate`,
                `NsaPerShare`,
                `NSA`,
                `Shares`,
                `YearBegin`,
                `YearAgo`,
                `Deviation`
            FROM
                `assets`
            WHERE
                `ID` IN (SELECT MAX(`ID`) FROM `assets` GROUP BY `Fund`)
             ORDER BY `PostDate` DESC

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

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

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

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

SELECT
                    IF(P1.`URLLabel` <> '', CONCAT(P1.`URLLabel`, '/', P2.`URLLabel`), P2.`URLLabel`) AS `URL`
                FROM
                    `pages` P2
                    LEFT JOIN `pages` P1 ON
                        P2.`ParentID` > 1 AND
                        P1.`ID` = P2.`ParentID` AND
                        P1.`Language` = P2.`Language` AND
                        P1.`Visible` = P2.`Visible`
                WHERE
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'events'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                `PostDate`,
                `URLLabel`,
                `Title`,
                `Annotation`
            FROM
                `events`
            WHERE
                `Language` = 'bg' AND
                `FirstPage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
            LIMIT 3

SELECT `Annotation` FROM `pages` WHERE`Module` = 'events' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

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

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

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

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

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:51] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:53] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:56] /activa/www/bg/доверително-управление/инвестиционна-стратегия.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'доверително-управление' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'инвестиционна-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'доверително-управление' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'инвестиционна-стратегия'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'инвестиционна-стратегия' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'доверително-управление'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'инвестиционна-стратегия'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 35
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:57] /activa/www/bg/доверително-управление/инвестиционна-стратегия.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'доверително-управление' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'инвестиционна-стратегия' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'доверително-управление' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'инвестиционна-стратегия'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'инвестиционна-стратегия' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'доверително-управление'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'инвестиционна-стратегия'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 35
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:58] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:58:59] /activa/www/bg/ajax/cookies.html?_=1719237532592 108.61.209.243

set names utf8

SELECT `URLLabel` FROM `pages` WHERE`Module` = 'terms' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('TextCookies','LUnderstood') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:59:02] /activa/www/ 108.61.209.243

set names utf8

SELECT
                    *,
                    CONCAT('pages/', `UploadID`, '/i_', `Image`) AS `HeaderImage`
    	        FROM
    	        	`pages`
    	    	WHERE
                    -- `ParentID` = 1 AND // TODO: full test
                    `Language` = 'bg' AND
                    `Module` = 'pages' AND
    	    		`URLLabel` = 'index'
             AND `Visible` = 1 LIMIT 1

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

SELECT
                `P1`.`UploadID`,
                `P1`.`URLLabel`,
                `P1`.`Icon`,
                `P1`.`Image`,
                `P1`.`MenuLabel`,
                `P1`.`Annotation`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
            WHERE
                `P1`.`Icon` <> '' AND
                `P1`.`Image` <> '' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Language` = 'bg' AND
                `P1`.`FirstPage` = 1 AND
                `P1`.`Visible` = 1
            ORDER BY `P1`.`PostDate` ASC

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

SELECT `MetaTitle` FROM `pages` WHERE`ID` = 1 AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Fund`,
                `PostDate` + INTERVAL - 1 DAY AS `Date1`,
                `PostDate`,
                `NsaPerShare`,
                `NSA`,
                `Shares`,
                `YearBegin`,
                `YearAgo`,
                `Deviation`
            FROM
                `assets`
            WHERE
                `ID` IN (SELECT MAX(`ID`) FROM `assets` GROUP BY `Fund`)
             ORDER BY `PostDate` DESC

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

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

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

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

SELECT
                    IF(P1.`URLLabel` <> '', CONCAT(P1.`URLLabel`, '/', P2.`URLLabel`), P2.`URLLabel`) AS `URL`
                FROM
                    `pages` P2
                    LEFT JOIN `pages` P1 ON
                        P2.`ParentID` > 1 AND
                        P1.`ID` = P2.`ParentID` AND
                        P1.`Language` = P2.`Language` AND
                        P1.`Visible` = P2.`Visible`
                WHERE
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'events'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                `PostDate`,
                `URLLabel`,
                `Title`,
                `Annotation`
            FROM
                `events`
            WHERE
                `Language` = 'bg' AND
                `FirstPage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
            LIMIT 3

SELECT `Annotation` FROM `pages` WHERE`Module` = 'events' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

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

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

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

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

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:59:03] /activa/www/bg/ajax/cookies.html?_=1719237536752 108.61.209.243

set names utf8

SELECT `URLLabel` FROM `pages` WHERE`Module` = 'terms' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('TextCookies','LUnderstood') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:59:04] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:59:11] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 16:59:16] /activa/www/bg/актива-асет-мениджмънт/за-нас.html 108.61.209.243

set names utf8

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'актива-асет-мениджмънт' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                `Module`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`URLLabel` = 'за-нас' -- AND
                -- `ParentID` = 1 AND // TODO: FULL TEST
                -- (`Action` IS NULL OR `Action` = '')
         AND `Visible` = 1 LIMIT 1

SELECT
                    P1.`MenuLabel` AS `ParentTitle`,
                    IF(`P2`.`Image` <> '',
                            CONCAT('pages/', `P2`.`UploadID`, '/i_', `P2`.`Image`),
                            CONCAT('pages/', `P1`.`UploadID`, '/i_', `P1`.`Image`)
                    ) AS `HeaderImage`,
                    P2.*
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON P2.`ParentID` = P1.`ID` AND P2.`Language` = P1.`Language`
                WHERE
                    -- P1.`ParentID` = 1 AND // TODO: FULL TEST
                    P1.`URLLabel` = 'актива-асет-мениджмънт' AND
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'pages' AND
                    P2.`URLLabel` = 'за-нас'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                    P2.`Language`,
                    CONCAT(P0.`URLLabel`, '/', P2.`URLLabel`) AS `URLLabel`
                FROM
                    `pages` AS P1
                    INNER JOIN `pages` AS P2 ON
                        P1.`ID` = P2.`ID` AND
                        P2.`NoIndex` = 0 AND
                        P2.`Language` != 'bg' AND
                        P2.`Visible` = 1
                    INNER JOIN `pages` AS P0 ON
                        P0.`ID` = P2.`ParentID` AND
                        P0.`Language` = P2.`Language` AND
                        P0.`NoIndex` = 0 AND
                        P0.`Visible` = 1
                WHERE
                    P1.`NoIndex` = 0 AND
                    P1.`Language` = 'bg' AND
                    P1.`URLLabel` = 'за-нас' AND
                    P1.`Visible` = 1

SELECT
                `P1`.`ID`,
                `P1`.`URLLabel`
	        FROM
	        	`pages` `P1`
                INNER JOIN `pages` `P2` ON
                    `P1`.`ID` = `P2`.`ID` AND
                    `P2`.`Language` = 'bg' AND
                    `P2`.`URLLabel` = 'актива-асет-мениджмънт'
	    	WHERE
                `P1`.`Language` = 'en'
         AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                        `P1`.`URLLabel`
                    FROM
                        `pages` `P1`
                        INNER JOIN `pages` `P2` ON
                            `P1`.`ID` = `P2`.`ID` AND
                            `P2`.`Language` = 'bg' AND
                            `P2`.`URLLabel` = 'за-нас'
                    WHERE
                        `P1`.`Language` = 'en' AND
                        `P1`.`ParentID` = 31
                 AND `P1`.`Visible` = 1 LIMIT 1

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [24-Jun-2024 17:05:27] /activa/www/ 108.61.209.243

set names utf8

SELECT
                    *,
                    CONCAT('pages/', `UploadID`, '/i_', `Image`) AS `HeaderImage`
    	        FROM
    	        	`pages`
    	    	WHERE
                    -- `ParentID` = 1 AND // TODO: full test
                    `Language` = 'bg' AND
                    `Module` = 'pages' AND
    	    		`URLLabel` = 'index'
             AND `Visible` = 1 LIMIT 1

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

SELECT
                `P1`.`UploadID`,
                `P1`.`URLLabel`,
                `P1`.`Icon`,
                `P1`.`Image`,
                `P1`.`MenuLabel`,
                `P1`.`Annotation`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
            WHERE
                `P1`.`Icon` <> '' AND
                `P1`.`Image` <> '' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Language` = 'bg' AND
                `P1`.`FirstPage` = 1 AND
                `P1`.`Visible` = 1
            ORDER BY `P1`.`PostDate` ASC

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

SELECT `MetaTitle` FROM `pages` WHERE`ID` = 1 AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `Fund`,
                `PostDate` + INTERVAL - 1 DAY AS `Date1`,
                `PostDate`,
                `NsaPerShare`,
                `NSA`,
                `Shares`,
                `YearBegin`,
                `YearAgo`,
                `Deviation`
            FROM
                `assets`
            WHERE
                `ID` IN (SELECT MAX(`ID`) FROM `assets` GROUP BY `Fund`)
             ORDER BY `PostDate` DESC

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

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

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

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

SELECT
                    IF(P1.`URLLabel` <> '', CONCAT(P1.`URLLabel`, '/', P2.`URLLabel`), P2.`URLLabel`) AS `URL`
                FROM
                    `pages` P2
                    LEFT JOIN `pages` P1 ON
                        P2.`ParentID` > 1 AND
                        P1.`ID` = P2.`ParentID` AND
                        P1.`Language` = P2.`Language` AND
                        P1.`Visible` = P2.`Visible`
                WHERE
                    P2.`Language` = 'bg' AND
                    P2.`Module` = 'events'
             AND P2.`Visible` = 1 LIMIT 1

SELECT
                `PostDate`,
                `URLLabel`,
                `Title`,
                `Annotation`
            FROM
                `events`
            WHERE
                `Language` = 'bg' AND
                `FirstPage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
            LIMIT 3

SELECT `Annotation` FROM `pages` WHERE`Module` = 'events' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

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

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

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

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

SELECT
                `P1`.`ID`,
                `P1`.`ParentID`,
                `P1`.`MenuLabel`,
                IF(`P2`.`URLLabel` <> '', CONCAT(`P2`.`URLLabel`, '/', `P1`.`URLLabel`), `P1`.`URLLabel`) AS `URLLabel`,
                (SELECT `ID` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 LIMIT 1) AS `ChildID`,
                (SELECT `URLLabel` FROM `pages` WHERE `ParentID` = `P1`.`ID` AND `P1`.`ParentID` = 1 AND `Language` = `P1`.`Language` ORDER BY `PostDate` LIMIT 1) AS `ChildURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT `Title`, `URLLabel` FROM `pages` WHERE`Module` = 'pages' AND
	`Action` = 'top' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

SELECT
                `P1`.`FooterLabel`,
                `P1`.`URLLabel`,
                `P2`.`URLLabel` AS `ParentURLLabel`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language`
            WHERE
                `P1`.`FooterLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

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