# [14-Feb-2024 11:09:19] /activa/www/aD3nVpq2C/bg/ajax/users/login.html?_=1707901759629 108.61.209.243

set names utf8

UPDATE
                `users`
            SET
                `LastUpdate` = NOW(),
                `AccessKey` = 'QE9ez6X9G2SOWP77HdvPGgkV7hGpWJasT7BcMg31x33t0exNMs717d6ySD2YVM3W'
            WHERE
                `UserKey` LIKE 'wr7DjsOSw4DDjsK7w5zCtsKaw6fCs8OGw4zDn8OZw6DCvMK_wrXCiMOGw5M%' AND
                RIGHT(`UserKey`, 1) > 0
            LIMIT 1
# [14-Feb-2024 11:09:33] /activa/www/aD3nVpq2C/bg/ajax/users/login.html?_=1707901773088 108.61.209.243

set names utf8

SELECT
                `ID`,
                CRC32(`UserKey`) AS `User`,
                SUBSTRING(`UserKey`, -33, 32) AS `PassKey`,
                RIGHT(`UserKey`, 1) AS `Access`
            FROM
                `users`
            WHERE
                RIGHT(`UserKey`, 1) > 0 AND
                `LastUpdate` >= DATE_SUB(NOW(), INTERVAL 1 MINUTE) AND
                `AccessKey` = 'QE9ez6X9G2SOWP77HdvPGgkV7hGpWJasT7BcMg31x33t0exNMs717d6ySD2YVM3W'
            LIMIT 1

UPDATE
                `users`
            SET
                `LastUpdate` = NOW(),
                `AccessKey` = ''
            WHERE
                `ID` = 2
            LIMIT 1
# [14-Feb-2024 11:09:33] /activa/www/aD3nVpq2C/bg/pages/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`Language`,
                `pages`.`Module`,
                `pages`.`Action`,
                `pages`.`PostDate`,
                `pages`.`LastUpdate`,
                IF(`pages`.`MenuLabel` <> '', `pages`.`MenuLabel`, `pages`.`FooterLabel`) AS `Label`,
                IF(`Parent`.`URLLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`URLLabel`, '/', `pages`.`URLLabel`), `pages`.`URLLabel`) AS `URLLabel`,
                `pages`.`Visible`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    -- `Parent`.`ParentID` = 1 AND // TODO: FULL TEST
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg'
         ORDER BY `pages`.`ParentID` ASC, `pages`.`PostDate` ASC
# [14-Feb-2024 11:09:40] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:09:51] /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.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
                `UploadID`,
                `URLLabel`,
                `Icon`,
                `Image`,
                `MenuLabel`,
                `Annotation`
            FROM
                `pages`
            WHERE
                `Icon` <> '' AND
                `Image` <> '' AND
                `MenuLabel` <> '' AND
                `Language` = 'bg' AND
                `FirstPage` = 1 AND
                `Visible` = 1
            ORDER BY `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
                    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

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 ('Dec') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

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

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

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Oct') 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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:10:00] /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.`Visible` = 1
            WHERE
                P1.`NoIndex` = 0 AND
                P1.`Language` = 'bg' AND
                P1.`URLLabel` = 'актива-високодоходен-фонд' AND
                P1.`Visible` = 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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:10:01] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:10:03] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:18:00] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902280007 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:19:16] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902280090.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:19:21] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902361080 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '74', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:19:21', `UploadID` = '7902280090', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2016 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2016 г.', `MetaKeywords` = '', `FileName` = '190612074950.xlsx', `Year` = '2016', `Title` = 'Шестмесечен финансов отчет 2016 г.', `Visible` = 1
# [14-Feb-2024 11:19:21] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:19:21] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902361830 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:20:18] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902361791.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:20:21] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902421855 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '75', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:20:21', `UploadID` = '7902361791', `PageID` = '49', `MetaTitle` = 'Доп. инфо към шестмесечния финансов отчет 2016 г. ', `MetaDescription` = 'Доп. инфо към шестмесечния финансов отчет 2016 г. ', `MetaKeywords` = '', `FileName` = '190612075016.pdf', `Year` = '2016', `Title` = 'Доп. инфо към шестмесечния финансов отчет 2016 г. ', `Visible` = 1
# [14-Feb-2024 11:20:21] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:20:22] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902422758 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:20:45] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902422725.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:21:59] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902519065 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '76', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:21:59', `UploadID` = '7902422725', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2016 г.', `MetaDescription` = 'Годишен финансов отчет 2016 г.', `MetaKeywords` = '', `FileName` = '190612075046.pdf', `Year` = '2016', `Title` = 'Годишен финансов отчет 2016 г.', `Visible` = 1
# [14-Feb-2024 11:21:59] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:21:59] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902519831 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:22:28] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902519790.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:22:32] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902552641 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '77', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:22:32', `UploadID` = '7902519790', `PageID` = '49', `MetaTitle` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2016 г.', `MetaDescription` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2016 г.', `MetaKeywords` = '', `FileName` = '190809131303.pdf', `Year` = '2016', `Title` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2016 г.', `Visible` = 1
# [14-Feb-2024 11:22:32] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:22:37] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902557344 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:22:50] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:23:11] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902557302.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:23:29] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902609817 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '78', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:23:29', `UploadID` = '7902557302', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2017 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2017 г.', `MetaKeywords` = '', `FileName` = '190612075138.xlsx', `Year` = '2017', `Title` = 'Шестмесечен финансов отчет 2017 г.', `Visible` = 1
# [14-Feb-2024 11:23:29] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:23:30] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902610794 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:25:00] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:25:13] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902610751.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:25:16] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902716114 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '79', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:25:16', `UploadID` = '7902610751', `PageID` = '49', `MetaTitle` = 'Доп. инфо към шестмесечния финансов отчет 2017 г.', `MetaDescription` = 'Доп. инфо към шестмесечния финансов отчет 2017 г.', `MetaKeywords` = '', `FileName` = '190612075159.pdf', `Year` = '2017', `Title` = 'Доп. инфо към шестмесечния финансов отчет 2017 г.', `Visible` = 1
# [14-Feb-2024 11:25:16] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:25:16] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902716704 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:25:32] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902716659.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:25:40] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902740937 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '80', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:25:40', `UploadID` = '7902716659', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2017 г.', `MetaDescription` = 'Годишен финансов отчет 2017 г.', `MetaKeywords` = '', `FileName` = '190612075225.pdf', `Year` = '2017', `Title` = 'Годишен финансов отчет 2017 г.', `Visible` = 1
# [14-Feb-2024 11:25:41] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:25:42] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707902742472 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:25:57] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7902742427.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:26:11] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707902771433 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '81', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:26:11', `UploadID` = '7902742427', `PageID` = '49', `MetaTitle` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2017 г.', `MetaDescription` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2017 г.', `MetaKeywords` = '', `FileName` = '190809131210.pdf', `Year` = '2017', `Title` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2017 г.', `Visible` = 1
# [14-Feb-2024 11:26:11] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:30:55] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 11:32:04] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707903124851 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:32:14] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7903124869.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:32:33] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707903153764 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '82', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:32:33', `UploadID` = '7903124869', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2018 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2018 г.', `MetaKeywords` = '', `FileName` = '190612075301.xls', `Year` = '2018', `Title` = 'Шестмесечен финансов отчет 2018 г.', `Visible` = 1
# [14-Feb-2024 11:32:33] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:32:34] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707903154658 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:33:04] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7903154606.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:33:35] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707903215372 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '83', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:33:35', `UploadID` = '7903154606', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2018 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2018 г.', `MetaKeywords` = '', `FileName` = '190612075319.pdf', `Year` = '2018', `Title` = 'Доп. информация към шестмесечния финансов отчет 2018 г.', `Visible` = 1
# [14-Feb-2024 11:33:35] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:33:36] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707903216148 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:33:49] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7903216096.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 11:34:06] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707903246781 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '84', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 11:34:06', `UploadID` = '7903216096', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2018 г.', `MetaDescription` = 'Годишен финансов отчет 2018 г.', `MetaKeywords` = '', `FileName` = '190612075339.pdf', `Year` = '2018', `Title` = 'Годишен финансов отчет 2018 г.', `Visible` = 1
# [14-Feb-2024 11:34:06] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 11:55:06] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904506295 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 11:55:25] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904506220.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:00:08] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904808215 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '85', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:00:08', `UploadID` = '7904506220', `PageID` = '49', `MetaTitle` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2018 г.', `MetaDescription` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2018 г.', `MetaKeywords` = '', `FileName` = '190809131111.pdf', `Year` = '2018', `Title` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2018 г.', `Visible` = 1
# [14-Feb-2024 12:00:08] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:00:09] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904809404 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:00:38] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904809324.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:00:44] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904844437 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '86', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:00:44', `UploadID` = '7904809324', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2018 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2018 г.', `MetaKeywords` = '', `FileName` = '190809131315.pdf', `Year` = '2018', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2018 г.', `Visible` = 1
# [14-Feb-2024 12:00:44] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:00: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 12:01:10] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904870221 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:01:19] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904870209.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:01:30] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904890134 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '87', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:01:30', `UploadID` = '7904870209', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2019 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2019 г.', `MetaKeywords` = '', `FileName` = '190807134552.xlsx', `Year` = '2019', `Title` = 'Шестмесечен финансов отчет 2019 г.', `Visible` = 1
# [14-Feb-2024 12:01:30] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:01:30] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904890869 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:01:50] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904890788.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:02:03] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904923965 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '88', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:02:03', `UploadID` = '7904890788', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2019 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2019 г.', `MetaKeywords` = '', `FileName` = '190807134559.pdf', `Year` = '2019', `Title` = 'Доп. информация към шестмесечния финансов отчет 2019 г.', `Visible` = 1
# [14-Feb-2024 12:02:04] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:02:04] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904924820 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:02:24] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904924738.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:02:33] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904953503 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '89', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:02:33', `UploadID` = '7904924738', `PageID` = '49', `MetaTitle` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2019 г.', `MetaDescription` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2019 г.', `MetaKeywords` = '', `FileName` = '200127132430.pdf', `Year` = '2019', `Title` = 'Информация отностно прилагането на чл. 43 от Наредба 44 2019 г.', `Visible` = 1
# [14-Feb-2024 12:02:33] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:02:34] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904954420 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:02:50] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904954340.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:03:00] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707904980806 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '90', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:03:00', `UploadID` = '7904954340', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2019 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2019 г.', `MetaKeywords` = '', `FileName` = '191231110202.pdf', `Year` = '2019', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2019 г.', `Visible` = 1
# [14-Feb-2024 12:03:00] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:03:01] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707904981541 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 12:03:22] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7904981456.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 12:03:34] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707905014342 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '91', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 12:03:34', `UploadID` = '7904981456', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2019 г.', `MetaDescription` = 'Годишен финансов отчет 2019 г.', `MetaKeywords` = '', `FileName` = '200408134026.pdf', `Year` = '2019', `Title` = 'Годишен финансов отчет 2019 г.', `Visible` = 1
# [14-Feb-2024 12:03:34] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 12:03: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 15:14: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 15:15:11] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707916511359 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 15:15:25] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7916511162.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 15:15:49] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707916549624 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '92', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 15:15:49', `UploadID` = '7916511162', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2020 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2020 г.', `MetaKeywords` = '', `FileName` = '200728082119.xlsx', `Year` = '2020', `Title` = 'Шестмесечен финансов отчет 2020 г.', `Visible` = 1
# [14-Feb-2024 15:15:49] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 15:19:36] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707916776924 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 15:19:58] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7916776721.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 15:20:07] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707916808123 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '93', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 15:20:07', `UploadID` = '7916776721', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2020 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2020 г.', `MetaKeywords` = '', `FileName` = '200728082129.pdf', `Year` = '2020', `Title` = 'Доп. информация към шестмесечния финансов отчет 2020 г.', `Visible` = 1
# [14-Feb-2024 15:20:07] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 15:20:08] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707916809115 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 15:20:25] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7916808914.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 15:20:42] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707916842690 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '94', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 15:20:42', `UploadID` = '7916808914', `PageID` = '49', `MetaTitle` = 'Информация относно прилагането на чл. 43 от Наредба 44 2020 г.', `MetaDescription` = 'Информация относно прилагането на чл. 43 от Наредба 44 2020 г.', `MetaKeywords` = '', `FileName` = '210215124933.pdf', `Year` = '2020', `Title` = 'Информация относно прилагането на чл. 43 от Наредба 44 2020 г.', `Visible` = 1
# [14-Feb-2024 15:20:42] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 15:20:43] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707916844264 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 15:21:09] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7916843987.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 15:21:11] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707916872178 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '95', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 15:21:11', `UploadID` = '7916843987', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2020 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2020 г.', `MetaKeywords` = '', `FileName` = '201231113426.pdf', `Year` = '2020', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2020 г.', `Visible` = 1
# [14-Feb-2024 15:21:11] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 15:21:12] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707916872892 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 15:21:29] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7916872615.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 15:21:34] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707916894281 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '96', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 15:21:34', `UploadID` = '7916872615', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет за 2020г.', `MetaDescription` = 'Годишен финансов отчет за 2020г.
', `MetaKeywords` = '', `FileName` = '210401131251.pdf', `Year` = '2020', `Title` = 'Годишен финансов отчет за 2020г.', `Visible` = 1
# [14-Feb-2024 15:21:34] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 15:24:43] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707917083778 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:12: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 16:13:18] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7917083572.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:13:23] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920003476 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '97', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:13:23', `UploadID` = '7917083572', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2021 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2021 г.', `MetaKeywords` = '', `FileName` = '210820123024.xlsx', `Year` = '2021', `Title` = 'Шестмесечен финансов отчет 2021 г.', `Visible` = 1
# [14-Feb-2024 16:13:23] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:13:26] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920006796 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:13:42] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920006465.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:13:50] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920031044 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '98', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:13:50', `UploadID` = '7920006465', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2021 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2021 г.', `MetaKeywords` = '', `FileName` = '220328092139.pdf', `Year` = '2021', `Title` = 'Доп. информация към шестмесечния финансов отчет 2021 г.', `Visible` = 1
# [14-Feb-2024 16:13:50] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:13:52] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920032635 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:14: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 16:14:55] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920032304.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:15:15] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920115508 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '99', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:15:15', `UploadID` = '7920032304', `PageID` = '49', `MetaTitle` = 'Информация относно прилагането на чл. 43 от Наредба №44 2021 г.', `MetaDescription` = 'Информация относно прилагането на чл. 43 от Наредба №44 2021 г.', `MetaKeywords` = '', `FileName` = '220328092223.pdf', `Year` = '2021', `Title` = 'Информация относно прилагането на чл. 43 от Наредба №44 2021 г.', `Visible` = 1
# [14-Feb-2024 16:15:15] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:15:16] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920116594 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:15:46] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920116261.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:16:03] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920163800 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '100', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:16:03', `UploadID` = '7920116261', `PageID` = '49', `MetaTitle` = 'Доп. информация към годишния финансов отчет 2021 г.', `MetaDescription` = 'Доп. информация към годишния финансов отчет 2021 г.', `MetaKeywords` = '', `FileName` = '220328092242.pdf', `Year` = '2021', `Title` = 'Доп. информация към годишния финансов отчет 2021 г.', `Visible` = 1
# [14-Feb-2024 16:16:03] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:16:04] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920165239 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:16:10] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920164909.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:16:36] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920164909.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:17:02] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920222709 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '101', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:17:02', `UploadID` = '7920164909', `PageID` = '49', `MetaTitle` = 'Доп. информация към годишния финансов отчет 2021 г.', `MetaDescription` = 'Доп. информация към годишния финансов отчет 2021 г.', `MetaKeywords` = '', `FileName` = '220328092253.pdf', `Year` = '2021', `Title` = 'Доп. информация към годишния финансов отчет 2021 г.', `Visible` = 1
# [14-Feb-2024 16:17:02] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:17:03] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920223493 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:17:15] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920223160.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:18:55] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920335670 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '102', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:18:55', `UploadID` = '7920223160', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет - форми КФН 2021 г.', `MetaDescription` = 'Годишен финансов отчет - форми КФН 2021 г.', `MetaKeywords` = '', `FileName` = '220328092311.xlsx', `Year` = '2021', `Title` = 'Годишен финансов отчет - форми КФН 2021 г.', `Visible` = 1
# [14-Feb-2024 16:18:55] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:19:04] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920345103 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:19:27] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920344836.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:19:30] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920370603 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '103', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:19:30', `UploadID` = '7920344836', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2021 г.', `MetaDescription` = 'Годишен финансов отчет 2021 г.', `MetaKeywords` = '', `FileName` = '220328092328.pdf', `Year` = '2021', `Title` = 'Годишен финансов отчет 2021 г.', `Visible` = 1
# [14-Feb-2024 16:19:30] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:19:37] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920377525 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:19: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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 16:20:41] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920377257.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:21:04] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920464628 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '104', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:21:04', `UploadID` = '7920377257', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2022 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2022 г.', `MetaKeywords` = '', `FileName` = '220729092456.xls', `Year` = '2022', `Title` = 'Шестмесечен финансов отчет 2022 г.', `Visible` = 1
# [14-Feb-2024 16:21:04] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:21:20] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920480795 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:21:27] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920480532.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:21:36] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920496583 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '105', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:21:36', `UploadID` = '7920480532', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2022 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2022 г.', `MetaKeywords` = '', `FileName` = '220729092501.pdf', `Year` = '2022', `Title` = 'Доп. информация към шестмесечния финансов отчет 2022 г.', `Visible` = 1
# [14-Feb-2024 16:21:36] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:21:45] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920505653 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:21:51] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920505386.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:24:16] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920657239 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '106', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:24:17', `UploadID` = '7920505386', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2022 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2022 г.', `MetaKeywords` = '', `FileName` = '230104140136.pdf', `Year` = '2022', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2022 г.', `Visible` = 1
# [14-Feb-2024 16:24:17] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:24:18] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920658926 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:24:39] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920658585.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:24:47] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920688162 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '107', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:24:47', `UploadID` = '7920658585', `PageID` = '49', `MetaTitle` = 'Информация относно прилагането на чл. 43 от Наредба №44 2022 г.', `MetaDescription` = 'Информация относно прилагането на чл. 43 от Наредба №44 2022 г.', `MetaKeywords` = '', `FileName` = '230207093104.pdf', `Year` = '2022', `Title` = 'Информация относно прилагането на чл. 43 от Наредба №44 2022 г.', `Visible` = 1
# [14-Feb-2024 16:24:47] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:24:49] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707920690126 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:25:19] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7920689783.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:25:20] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707920721215 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '108', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:25:20', `UploadID` = '7920689783', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет 2022 г.', `MetaDescription` = 'Годишен финансов отчет 2022 г.', `MetaKeywords` = '', `FileName` = '230330084231.pdf', `Year` = '2022', `Title` = 'Годишен финансов отчет 2022 г.', `Visible` = 1
# [14-Feb-2024 16:25:20] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:57:26] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 16:58:38] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707922718828 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:59:00] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7922718522.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 16:59:18] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707922758337 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '109', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 16:59:18', `UploadID` = '7922718522', `PageID` = '49', `MetaTitle` = 'Годишен финансов отчет - Форми на КФН 2022 г.', `MetaDescription` = 'Годишен финансов отчет - Форми на КФН 2022 г.', `MetaKeywords` = '', `FileName` = '230330084243.xlsx', `Year` = '2022', `Title` = 'Годишен финансов отчет - Форми на КФН 2022 г.', `Visible` = 1
# [14-Feb-2024 16:59:18] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 16:59:18] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707922759110 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 16:59:34] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7922758733.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:01:03] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707922863523 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '110', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:01:03', `UploadID` = '7922758733', `PageID` = '49', `MetaTitle` = 'Доп. информация към годишния финансов отчет 2022 г.', `MetaDescription` = 'Доп. информация към годишния финансов отчет 2022 г.', `MetaKeywords` = '', `FileName` = '230330084305.pdf', `Year` = '2022', `Title` = 'Доп. информация към годишния финансов отчет 2022 г.', `Visible` = 1
# [14-Feb-2024 17:01:03] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:01:18] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707922878698 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:01:25] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7922878389.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:01:53] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707922914021 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '111', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:01:53', `UploadID` = '7922878389', `PageID` = '49', `MetaTitle` = 'Доп. информация към годишния финансов отчет 2022 г.', `MetaDescription` = 'Доп. информация към годишния финансов отчет 2022 г.', `MetaKeywords` = '', `FileName` = '230330084316.pdf', `Year` = '2022', `Title` = 'Доп. информация към годишния финансов отчет 2022 г.', `Visible` = 1
# [14-Feb-2024 17:01:53] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:02:04] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707922924611 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:02:36] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7922924283.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:02:38] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707922958830 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '112', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:02:38', `UploadID` = '7922924283', `PageID` = '49', `MetaTitle` = 'Шестмесечен финансов отчет 2023 г.', `MetaDescription` = 'Шестмесечен финансов отчет 2023 г.', `MetaKeywords` = '', `FileName` = '230728135949.xls', `Year` = '2023', `Title` = 'Шестмесечен финансов отчет 2023 г.', `Visible` = 1
# [14-Feb-2024 17:02:38] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:02:39] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707922959691 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:02:56] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7922959287.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:03:24] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707923005277 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '113', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:03:24', `UploadID` = '7922959287', `PageID` = '49', `MetaTitle` = 'Доп. информация към шестмесечния финансов отчет 2023 г.', `MetaDescription` = 'Доп. информация към шестмесечния финансов отчет 2023 г.', `MetaKeywords` = '', `FileName` = '230728140004.pdf', `Year` = '2023', `Title` = 'Доп. информация към шестмесечния финансов отчет 2023 г.', `Visible` = 1
# [14-Feb-2024 17:03:24] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:03:25] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707923006155 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:03:59] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7923005749.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:04:00] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LAttention','AttentionText') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [14-Feb-2024 17:04:10] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707923051278 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '114', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:04:10', `UploadID` = '7923005749', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2023 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2023 г.', `MetaKeywords` = '', `FileName` = '240103130824.pdf', `Year` = '2023', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2023 г.', `Visible` = 1
# [14-Feb-2024 17:04:10] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:04:23] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707923063532 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:04:35] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7923063199.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:04:57] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707923098203 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '115', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:04:57', `UploadID` = '7923063199', `PageID` = '49', `MetaTitle` = 'Информация относно прилагането на чл. 43 от Наредба №44 2023 г.', `MetaDescription` = 'Информация относно прилагането на чл. 43 от Наредба №44 2023 г.', `MetaKeywords` = '', `FileName` = '240131154020.pdf', `Year` = '2023', `Title` = 'Информация относно прилагането на чл. 43 от Наредба №44 2023 г.', `Visible` = 1
# [14-Feb-2024 17:04:57] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:05:25] /activa/www/aD3nVpq2C/bg/ajax/reports/form.html?_=1707923125941 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `pages`.`ID`,
                `pages`.`ParentID`,
                `pages`.`Module`,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Label`
                -- `MenuLabel` AS `Label`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`MenuLabel` <> '' AND
                `pages`.`Language` = 'bg' AND
                `pages`.`AddContent` LIKE '%reports%'
            ORDER BY
                `pages`.`ParentID` ASC,
                `pages`.`PostDate` ASC
# [14-Feb-2024 17:05:43] /activa/www/aD3nVpq2C/bg/ajax/reports/upload/7923125605.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [14-Feb-2024 17:05:46] /activa/www/aD3nVpq2C/bg/ajax/reports/insert.html?_=1707923147136 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `reports`

SELECT * FROM `reports` LIMIT 1

SHOW COLUMNS FROM `reports`

INSERT INTO `reports` SET `ID` = '116', `Language` = 'bg', `PostDate` = '2024-02-14', `LastUpdate` = '2024-02-14 17:05:46', `UploadID` = '7923125605', `PageID` = '49', `MetaTitle` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2024 г.', `MetaDescription` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2024 г.', `MetaKeywords` = '', `FileName` = '240201104040.pdf', `Year` = '2024', `Title` = 'Обобщена информация за обявените емисионни стойности и цени на обратно изкупуване 2024 г.', `Visible` = 1
# [14-Feb-2024 17:05:46] /activa/www/aD3nVpq2C/bg/reports/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:06:05] /activa/www/aD3nVpq2C/bg/reports/list.html?sort=00 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` ASC
# [14-Feb-2024 17:06:09] /activa/www/aD3nVpq2C/bg/reports/list.html?sort=01 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 2 AND
                                CRC32(`UserKey`) = 2982949230 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `reports`.*,
                IF(`Parent`.`MenuLabel` <> '' AND `pages`.`ParentID` > 1, CONCAT(`Parent`.`MenuLabel`, ' / ', `pages`.`MenuLabel`), `pages`.`MenuLabel`) AS `Page`
            FROM
                `reports`
                INNER JOIN `pages` ON `pages`.`ID` = `reports`.`PageID` AND `pages`.`Language` = `reports`.`Language`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `reports`.`Language` = 'bg'
         ORDER BY `reports`.`PostDate` DESC
# [14-Feb-2024 17:06:23] /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`,
                P2.`URLLabel`
            FROM
                `pages` AS P1
                INNER JOIN `pages` AS P2 ON
                    P1.`ID` = P2.`ID` AND
                    P2.`NoIndex` = 0 AND
                    P2.`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` = 49 AND `Visible` = 1 ORDER BY `Year` ASC, `PostDate` DESC

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

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` = 'bg'
         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.`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`
            FROM
                `pages` AS `P1`
                LEFT JOIN `pages` AS `P2` ON
                    `P2`.`ID` = `P1`.`ParentID` AND
                    `P2`.`Language` = `P1`.`Language` AND
                    `P2`.`MenuLabel` <> ''
            WHERE
                `P1`.`Module` != 'users' AND
                `P1`.`MenuLabel` <> '' AND
                `P1`.`Visible` = 1 AND
                `P1`.`Language` = 'bg'
            GROUP BY
                `P1`.`ID`
            ORDER BY
                `P1`.`ParentID` ASC,
                `P1`.`PostDate` ASC

SELECT
                `Module`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                `FooterLabel` <> '' AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

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