# [04-Jan-2025 09:21:34] /mygregor/www/ 167.99.142.201

set names utf8

SELECT
                *
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'en' AND
                `Module` = 'pages' AND
	    		`URLLabel` = 'index' AND
                (`ExternalURL` IS NULL OR `ExternalURL` = '')
         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` = 'en' AND
                P1.`URLLabel` = 'index' AND
                P1.`Visible` = 1

SELECT
	        	`products`.`ID`,
                `products`.`RefID`,
                `products`.`UploadID`,
                `products`.`Gallery`,
                `products`.`Visible`,
                `product_texts`.`Language`,
                `product_texts`.`Title`,
                `product_texts`.`URLLabel`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
	    	WHERE
                `Language` = 'en' AND
                `Selected` = 1 AND
                `Gallery` != ''
         AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC

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

SELECT
                `ID`,
                `Language`,
                `Title`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'en' AND
                `ParentID` = 1 AND
	    		`Module` = 'products'
         AND `Visible` = 1 LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'reviews' AND `Language` = 'en' AND `Visible` = 1 LIMIT 1

SELECT
	        	*
	        FROM
	        	`reviews`
	    	WHERE
                `Language` = 'en'
         AND `FirstPage` = 1 AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC LIMIT 3

SELECT COUNT(`ID`) FROM `reviews` WHERE `Language` = 'en' AND `Visible` = 1

SELECT
                `ID`,
                `Language`,
                `Title`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'en' AND
                `ParentID` = 1 AND
	    		`Module` = 'reviews'
         AND `Visible` = 1 LIMIT 1
# [04-Jan-2025 09:21:34] /mygregor/www/bg 167.99.142.201

set names utf8

SELECT
                *
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
                `Module` = 'pages' AND
	    		`URLLabel` = 'index' AND
                (`ExternalURL` IS NULL OR `ExternalURL` = '')
         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
	        	`products`.`ID`,
                `products`.`RefID`,
                `products`.`UploadID`,
                `products`.`Gallery`,
                `products`.`Visible`,
                `product_texts`.`Language`,
                `product_texts`.`Title`,
                `product_texts`.`URLLabel`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
	    	WHERE
                `Language` = 'bg' AND
                `Selected` = 1 AND
                `Gallery` != ''
         AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC

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

SELECT
                `ID`,
                `Language`,
                `Title`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
                `ParentID` = 1 AND
	    		`Module` = 'products'
         AND `Visible` = 1 LIMIT 1

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

SELECT
	        	*
	        FROM
	        	`reviews`
	    	WHERE
                `Language` = 'bg'
         AND `FirstPage` = 1 AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC LIMIT 3

SELECT COUNT(`ID`) FROM `reviews` WHERE `Language` = 'bg' AND `Visible` = 1

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

SELECT
                `ID`,
                `Language`,
                `Title`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
                `ParentID` = 1 AND
	    		`Module` = 'reviews'
         AND `Visible` = 1 LIMIT 1

SELECT `Language`, `Label` FROM `languages` WHERE `Visible` = 1 ORDER BY `ID` ASC

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' AND `Action` = '' AND `Visible` = 1 LIMIT 1

SELECT
                `ID`,
                `ParentID`,
                `MenuLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `Module` IN ('pages', 'products', 'faq', 'contacts') AND
                `MenuLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 1 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 4

SELECT
                `product_texts`.`FooterLabel`,
                CONCAT(`pages`.`URLLabel`, '/', `product_texts`.`URLLabel`) AS `URL`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
                INNER JOIN `pages` ON `products`.`ParentID` = `pages`.`ID` AND `pages`.`Language` = 'bg'
	    	WHERE
                `products`.`ParentID` = 18 AND
                `products`.`Gallery` != '' AND
                `product_texts`.`Language` = 'bg' AND
                `product_texts`.`FooterLabel` != ''
         AND `products`.`Visible` = 1 ORDER BY `products`.`PostDate` ASC, `products`.`LastUpdate` ASC

SELECT
                `product_texts`.`FooterLabel`,
                CONCAT(`pages`.`URLLabel`, '/', `product_texts`.`URLLabel`) AS `URL`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
                INNER JOIN `pages` ON `products`.`ParentID` = `pages`.`ID` AND `pages`.`Language` = 'bg'
	    	WHERE
                `products`.`ParentID` = 12 AND
                `products`.`Gallery` != '' AND
                `product_texts`.`Language` = 'bg' AND
                `product_texts`.`FooterLabel` != ''
         AND `products`.`Visible` = 1 ORDER BY `products`.`PostDate` ASC, `products`.`LastUpdate` ASC

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 1000 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 10

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

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 10010 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 10

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

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LMyGregorAddress','LSupportText1','LSupportText2','SupportEMail','LPhone','SupportPhone','
        ') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [04-Jan-2025 09:21:34] /mygregor/www/bg/ajax/basket/qty.html?_=1735975294435 167.99.142.201

set names utf8

SELECT
                    `Qty`
                FROM
                    `basket`
                WHERE
                    `ClientID` = '7cd1a093616c7fc511288a4b77b0e2abd739c649bc61e31a69349f7224e9d8a7'
                 LIMIT 1
# [04-Jan-2025 09:21:34] /mygregor/www/bg/ajax/users/bar.html?_=1735975294434 167.99.142.201
# [04-Jan-2025 09:21:34] /mygregor/www/bg/ajax/products/prices.html?_=1735975294435 167.99.142.201

set names utf8

SELECT
                `ProductID`,
                `Price`,
                `PromoPrice`,
                 (`StartFrom` IS NULL OR `StartFrom` <= CURDATE()) AND (`EndTo` IS NULL OR `EndTo` >= CURDATE()) AS `Promo`
            FROM
                `product_texts`
            WHERE `ProductID` IN ('3','4','6') AND
                `Language` = 'bg'

set names utf8

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

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LLogout') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [04-Jan-2025 09:21:36] /mygregor/www/mgVh5s90Z/bg/pages/list.html 167.99.142.201

set names utf8

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

SELECT
                `ID`,
                `Language`,
                `Module`,
                `Action`,
                `PostDate`,
                `LastUpdate`,
                `ExternalURL`,
                `MenuLabel`,
                `Title`,
                `URLLabel`,
                `Visible`
            FROM
                `pages`
            WHERE
                `Language` = 'bg'
                
            ORDER BY  `ID` ASC

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'contacts' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'contacts' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'users' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' LIMIT 1
# [04-Jan-2025 09:21:40] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 09:32:10] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735975929895 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:33:29] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735976008576 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:34:15] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735976054677 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:35:08] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735976108142 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:35:25] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 09:35:26] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735976126526 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:43:25] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 09:43:46] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735976625788 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 09:44:22] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735976661955 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 09:44:25] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735976664770 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 09:45:03] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735976703437 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 09:45:14] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/3.html?_=1735976713906 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 3
            LIMIT 1
# [04-Jan-2025 09:45:47] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735976747043 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 09:47:25] /mygregor/www/mgVh5s90Z/bg/invoices/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `invoices` WHERE 1 ORDER BY `ID` DESC LIMIT 0, 20

SELECT COUNT(*) AS NumRows FROM (SELECT * FROM `invoices` WHERE 1 ORDER BY `ID` DESC) AS CountTable
# [04-Jan-2025 09:47:26] /mygregor/www/bg/invoices/list/page_2.html 167.99.142.201

set names utf8

SELECT `Language`, `Label` FROM `languages` WHERE `Visible` = 1 ORDER BY `ID` ASC

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Language` = 'bg' AND `ParentID` = 1 AND `Module` = 'orders' AND `Action` = '' AND `Visible` = 1 LIMIT 1

SELECT
                `ID`,
                `ParentID`,
                `MenuLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `Module` IN ('pages', 'products', 'faq', 'contacts') AND
                `MenuLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 1 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 4

SELECT
                `product_texts`.`FooterLabel`,
                CONCAT(`pages`.`URLLabel`, '/', `product_texts`.`URLLabel`) AS `URL`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
                INNER JOIN `pages` ON `products`.`ParentID` = `pages`.`ID` AND `pages`.`Language` = 'bg'
	    	WHERE
                `products`.`ParentID` = 18 AND
                `products`.`Gallery` != '' AND
                `product_texts`.`Language` = 'bg' AND
                `product_texts`.`FooterLabel` != ''
         AND `products`.`Visible` = 1 ORDER BY `products`.`PostDate` ASC, `products`.`LastUpdate` ASC

SELECT
                `product_texts`.`FooterLabel`,
                CONCAT(`pages`.`URLLabel`, '/', `product_texts`.`URLLabel`) AS `URL`
	        FROM
	        	`products`
                INNER JOIN `product_texts` ON `products`.`ID` = `product_texts`.`ProductID`
                INNER JOIN `pages` ON `products`.`ParentID` = `pages`.`ID` AND `pages`.`Language` = 'bg'
	    	WHERE
                `products`.`ParentID` = 12 AND
                `products`.`Gallery` != '' AND
                `product_texts`.`Language` = 'bg' AND
                `product_texts`.`FooterLabel` != ''
         AND `products`.`Visible` = 1 ORDER BY `products`.`PostDate` ASC, `products`.`LastUpdate` ASC

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 1000 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 10

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

SELECT
                `ID`,
                `ParentID`,
                `Module`,
                `FooterLabel`,
                `URLLabel`,
                `ExternalURL`,
                `NoIndex`
            FROM
                `pages`
            WHERE
                `ParentID` = 10010 AND
                `Module` IN ('pages', 'products') AND
                `FooterLabel` <> '' AND
                `Language` = 'bg'
         AND `Visible` = 1 ORDER BY `ParentID` ASC, `PostDate` ASC LIMIT 10

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

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LMyGregorAddress','LSupportText1','LSupportText2','SupportEMail','LPhone','SupportPhone','
        ') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [04-Jan-2025 09:47:26] /mygregor/www/mgVh5s90Z/bg/ajax/invoices/form.html?_=1735976846170 167.99.142.201

set names utf8

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

SELECT `Code`, `Name` FROM `countries` ORDER BY `countries`.`Name` ASC
# [04-Jan-2025 09:47:43] /mygregor/www/mgVh5s90Z/bg/ajax/invoices/form.html?_=1735976862545 167.99.142.201

set names utf8

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

SELECT `Code`, `Name` FROM `countries` ORDER BY `countries`.`Name` ASC
# [04-Jan-2025 10:11:30] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:11:32] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735978291870 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:11:45] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735978305229 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:11:54] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735978313887 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:12:00] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735978319973 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:12:04] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/3.html?_=1735978324180 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 3
            LIMIT 1
# [04-Jan-2025 10:12:50] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735978369960 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:13:18] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735978398044 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:13:38] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:13:41] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735978420557 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:18:23] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735978703445 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:18:44] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/insert.html?_=1735978724100 167.99.142.201

set names utf8

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

SELECT MAX(`ID`) + 1 FROM `receipts`
# [04-Jan-2025 10:20:35] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/insert.html?_=1735978834693 167.99.142.201

set names utf8

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

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

SELECT * FROM `receipts` LIMIT 1

SHOW COLUMNS FROM `receipts`

INSERT INTO `receipts` SET `ID` = '4', `PostDate` = '2025-01-04 10:18:24', `LastUpdate` = '2025-01-04 10:20:35', `Terminal` = '40086901382', `TransactionID` = '34564567', `OrderID` = '235', `InvoiceID` = '123412341234', `Currency` = NULL, `Sum` = '100', `VAT` = NULL, `Total` = '120'
# [04-Jan-2025 10:21:18] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:21:19] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735978879395 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:22:00] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/insert.html?_=1735978919893 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` LIMIT 1

SHOW COLUMNS FROM `receipts`

INSERT INTO `receipts` SET `PostDate` = '2025-01-04 10:21:19', `LastUpdate` = '2025-01-04 10:22:00', `Terminal` = '40086901382', `TransactionID` = '34564567', `OrderID` = '235', `InvoiceID` = '123412341234', `Currency` = 'BGN', `Sum` = '100', `Vat` = '20', `Total` = '120'
# [04-Jan-2025 10:22:28] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:22:30] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735978950181 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:22:52] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/insert.html?_=1735978972412 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` LIMIT 1

SHOW COLUMNS FROM `receipts`

INSERT INTO `receipts` SET `PostDate` = '2025-01-04 10:22:30', `LastUpdate` = '2025-01-04 10:22:52', `Terminal` = '40086901382', `TransactionID` = '34564567', `OrderID` = '235', `InvoiceID` = '1000000141', `Currency` = 'BGN', `Sum` = '100', `Vat` = '20', `Total` = '120'
# [04-Jan-2025 10:22:53] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:23:02] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/4.html?_=1735978982442 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 4
            LIMIT 1
# [04-Jan-2025 10:23:58] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form.html?_=1735979037662 167.99.142.201

set names utf8

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `users`
                                WHERE
                                    `ID` = 16 AND
                                    CRC32(`UserKey`) = 2004039510 AND
                                    RIGHT(`UserKey`, 1) = 2
                                LIMIT 1
# [04-Jan-2025 10:24:02] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735979041660 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:26:20] /mygregor/www/mgVh5s90Z/bg/receipts/list.html 167.99.142.201

set names utf8

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

SELECT * FROM `receipts` WHERE 1 ORDER BY `ID` ASC
# [04-Jan-2025 10:26:22] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735979182362 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:26:44] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/2.html?_=1735979203948 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 2
            LIMIT 1
# [04-Jan-2025 10:26:58] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/4.html?_=1735979218281 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 4
            LIMIT 1
# [04-Jan-2025 10:27:32] /mygregor/www/mgVh5s90Z/bg/ajax/receipts/form/clone/4.html?pid=4&_=1735979251931 167.99.142.201

set names utf8

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

SELECT
                *
            FROM
                `receipts`
            WHERE
                `ID` = 4
            LIMIT 1
