# [15-Aug-2024 07:29:05] /aria/www/ 108.61.209.243

set names utf8

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

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

SELECT
                `UploadID`,
                `Images`,
                `Title`
            FROM
                `gallery`
            WHERE
                `Language` = 'bg' AND
                `Images` != '' AND
                `HomePage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
            LIMIT 1

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

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

SELECT
                `UploadID`,
                `Rate`,
                `Image`,
                `FullName`,
                `Review`,
                `Media`,
                `MediaURL`
            FROM
                `reviews`
            WHERE
                `Language` = 'bg' AND
                `Image` != '' AND
                `HomePage` = 1 AND
                `Visible` = 1
            ORDER BY `PostDate` DESC
         LIMIT 0, 4

SELECT `Annotation` FROM `pages` WHERE`Module` = 'reviews' AND
	`URLLabel` = 'отзиви' AND
	`Language` = 'bg' AND
	`Visible` = 1 LIMIT 1

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

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

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('AltLogo','Address','Phone','LContactUs','AddressFooter','EMail','BrandName','LBusinessHours','LWeekDays','LFollowUs','FacebookURL','InstagramURL','TripadvisorURL') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Module`,
                `MenuLabel`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                `Module` != 'users' AND
                (`MenuLabel` <> '' OR `FooterLabel` <> '') AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:29:09] /aria/www/aD4rbSw2A0/bg/ajax/users/login.html?_=1723696150064 108.61.209.243

set names utf8

SELECT
                `ID`,
                CRC32(`UserKey`) AS `User`,
                RIGHT(`UserKey`, 1) AS `Access`
            FROM
                `users`
            WHERE
                `UserKey` LIKE 'NzkzYjAzNGI1NTAwNmYyNjE4ZTE0YTgxNTRhMjY0MTIYjFhNTYxNzFmZThiOWY0YjI0NWU5MzU5Mzg0NTk5NTc%'
            LIMIT 1
# [15-Aug-2024 07:29:09] /aria/www/aD4rbSw2A0/bg/pages/list.html 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`UserKey`) = 1449405464 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` IS NULL, `pages`.`URLLabel`, CONCAT(`Parent`.`URLLabel`, '/', `pages`.`URLLabel`)) AS `URLLabel`,
                `pages`.`Visible`
            FROM
                `pages`
                LEFT JOIN `pages` AS `Parent` ON
                    `Parent`.`ParentID` = 1 AND
                    `pages`.`ParentID` = `Parent`.`ID` AND
                    `pages`.`Language` = `Parent`.`Language`
            WHERE
                `pages`.`Language` = 'bg'
         ORDER BY `pages`.`PostDate` ASC
# [15-Aug-2024 07:29:12] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:29:14] /aria/www/aD4rbSw2A0/bg/ajax/tables/form.html?_=1723696154665 108.61.209.243

set names utf8

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

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:30:13] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:30:15] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696215772 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:31:09] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:31:10] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696270732 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:32:42] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:32:45] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696365714 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:33:22] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:33:24] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696404570 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:34:15] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:34:16] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696456873 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:35:08] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:35:09] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696510292 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:36:40] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:36:42] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696603198 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:38:09] /aria/www/aD4rbSw2A0/bg/ajax/tables/update/1.html?_=1723696689438 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

UPDATE `tables` SET `PostDate` = '2024-08-14', `LastUpdate` = '2024-08-15 07:38:09', `HallID` = '1', `Number` = '2', `Shape` = 'circle', `Seats` = '3', `AdSeats` = '1', `Row` = '1', `Col` = '3', `Visible` = 1 WHERE `ID` = '1'
# [15-Aug-2024 07:38:09] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:38:10] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696691163 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:38:15] /aria/www/aD4rbSw2A0/bg/ajax/tables/update/1.html?_=1723696695547 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

UPDATE `tables` SET `PostDate` = '2024-08-14', `LastUpdate` = '2024-08-15 07:38:15', `HallID` = '1', `Number` = '2', `Shape` = 'circle', `Seats` = '3', `AdSeats` = '1', `Row` = '1', `Col` = '3', `Visible` = 1 WHERE `ID` = '1'
# [15-Aug-2024 07:38:15] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:38:17] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696698114 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:38:30] /aria/www/aD4rbSw2A0/bg/ajax/tables/update/1.html?_=1723696711202 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

UPDATE `tables` SET `PostDate` = '2024-08-14', `LastUpdate` = '2024-08-15 07:38:30', `HallID` = '1', `Number` = '2', `Shape` = 'circle', `Seats` = '3', `AdSeats` = '1', `Row` = '1', `Col` = '3', `Visible` = 1 WHERE `ID` = '1'
# [15-Aug-2024 07:38:30] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:40:00] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696800655 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:40:40] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:40:42] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696842669 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:40:46] /aria/www/aD4rbSw2A0/bg/ajax/tables/update/1.html?_=1723696846855 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

UPDATE `tables` SET `PostDate` = '2024-08-14', `LastUpdate` = '2024-08-15 07:40:46', `HallID` = '1', `Number` = '2', `Shape` = 'square', `Seats` = '3', `AdSeats` = '1', `Row` = '1', `Col` = '3', `Visible` = 1 WHERE `ID` = '1'
# [15-Aug-2024 07:40:46] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:40:48] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696848374 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:40:50] /aria/www/aD4rbSw2A0/bg/ajax/tables/update/1.html?_=1723696850471 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

UPDATE `tables` SET `PostDate` = '2024-08-14', `LastUpdate` = '2024-08-15 07:40:50', `HallID` = '1', `Number` = '2', `Shape` = 'square', `Seats` = '3', `AdSeats` = '1', `Row` = '1', `Col` = '3', `Visible` = 1 WHERE `ID` = '1'
# [15-Aug-2024 07:40:50] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:40:52] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696853276 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:41:00] /aria/www/aD4rbSw2A0/bg/ajax/tables/form.html?_=1723696861036 108.61.209.243

set names utf8

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

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:41:12] /aria/www/aD4rbSw2A0/bg/ajax/tables/insert.html?_=1723696873075 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`UserKey`) = 1449405464 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [15-Aug-2024 07:41:20] /aria/www/aD4rbSw2A0/bg/ajax/tables/insert.html?_=1723696881282 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`UserKey`) = 1449405464 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [15-Aug-2024 07:42:21] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:42:24] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/1.html?_=1723696944417 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 1
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:42:26] /aria/www/aD4rbSw2A0/bg/ajax/tables/form.html?_=1723696946401 108.61.209.243

set names utf8

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

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:42:49] /aria/www/aD4rbSw2A0/bg/ajax/tables/insert.html?_=1723696969683 108.61.209.243

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`UserKey`) = 1449405464 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1
# [15-Aug-2024 07:42:53] /aria/www/aD4rbSw2A0/bg/ajax/tables/insert.html?_=1723696973958 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

INSERT INTO `tables` SET `PostDate` = '2024-08-15', `LastUpdate` = '2024-08-15 07:42:53', `HallID` = '1', `Number` = '2', `Shape` = 'oval', `Seats` = '4', `AdSeats` = '', `Row` = '3', `Col` = '4', `Visible` = 1
# [15-Aug-2024 07:42:53] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:42:57] /aria/www/aD4rbSw2A0/bg/ajax/tables/form/2.html?_=1723696977349 108.61.209.243

set names utf8

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

SELECT
                *
            FROM
                `tables`
            WHERE
                `ID` = 2
            LIMIT 1

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:43:21] /aria/www/aD4rbSw2A0/bg/ajax/tables/form.html?_=1723697001417 108.61.209.243

set names utf8

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

SELECT
                `ID`,
                `Name`
            FROM
                `halls`
            WHERE
                `Language` = 'bg'
            ORDER BY `PostDate` ASC
# [15-Aug-2024 07:43:39] /aria/www/aD4rbSw2A0/bg/ajax/tables/insert.html?_=1723697019496 108.61.209.243

set names utf8

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

SELECT * FROM `tables` LIMIT 1

SHOW COLUMNS FROM `tables`

INSERT INTO `tables` SET `PostDate` = '2024-08-15', `LastUpdate` = '2024-08-15 07:43:39', `HallID` = '2', `Number` = '2', `Shape` = 'rectv', `Seats` = '4', `AdSeats` = '1', `Row` = '6', `Col` = '6', `Visible` = 1
# [15-Aug-2024 07:43:39] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:45:16] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID` AND `halls`.`Language` = 'bg'
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:45:43] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID` AND `halls`.`Language` = 'bg'
            GROUP BY `tables`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 07:46:10] /aria/www/aD4rbSw2A0/bg/tables/list.html 108.61.209.243

set names utf8

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

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`ID`,
                `tables`.`PostDate`,
                `tables`.`LastUpdate`,
                `tables`.`Number`,
                `tables`.`Seats`,
                `tables`.`AdSeats`,
                `tables`.`Visible`
            FROM
                `tables`
                INNER JOIN `halls` ON `tables`.`HallID` = `halls`.`ID` AND `halls`.`Language` = 'bg'
            GROUP BY `tables`.`ID`
         ORDER BY `PostDate` DESC
# [15-Aug-2024 09:08:16] /aria/res/bg/ajax/staff/login.html?c=1234&_=1723702096282 108.61.209.243

set names utf8

SELECT
                CONCAT(`ID`, '.', CRC32(`PassCode`), '.', `Visible`) AS `Key`
            FROM
                `staff`
            WHERE
                `PassCode` = '1234'
            LIMIT 1
# [15-Aug-2024 09:08:48] /aria/res/bg/ajax/staff/login.html?c=1234&_=1723702128169 108.61.209.243

set names utf8

SELECT
                CONCAT(`ID`, '.', CRC32(`PassCode`), '.', `Visible`) AS `Key`
            FROM
                `staff`
            WHERE
                `PassCode` = '1234'
            LIMIT 1
# [15-Aug-2024 09:08:48] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:10:14] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:10:16] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:11:20] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:57:39] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:58:30] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:58:51] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 09:59:15] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:01:12] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:01:14] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:02:05] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:02:07] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:02:41] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:02:43] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 10:02:43] /aria/res/ 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:08:39] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:23:20] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:24:18] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:24:20] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:24:38] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:24:39] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100
# [15-Aug-2024 11:27:08] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:27:36] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:31:40] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`Name` AS `HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123
# [15-Aug-2024 11:32:10] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:34:04] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:35:04] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:36:45] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:38:29] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:42:38] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40416

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40402

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40487

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40485

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40482

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40452

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40279

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40493

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40481

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40472

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40479

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40476

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40474

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40469

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40384

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40486

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40470

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40468

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40464

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40455

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40426

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40475

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40425

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40483

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40471

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40461

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40441

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40423

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40465

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40473

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40291

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40460

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40449

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40462

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40459

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40458

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40439

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40444

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40456

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40446

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40443

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40206

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40437

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40401

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40422

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40429

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40281

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40435

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40434

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40424

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40415

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40436

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40430

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40419

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40420

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40412

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1
# [15-Aug-2024 11:45:56] /aria/res/ 108.61.209.243

set names utf8

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 100

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40123

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40478

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40316

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 29515

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40428

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39702

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 39883

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40315

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40097

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40403

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40457

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40450

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40275

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40409

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40262

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40477

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40433

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40393

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40454

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40448

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40440

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40059

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40447

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40417

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40467

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40432

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40127

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40484

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40466

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40445

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40431

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40427

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40385

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40451

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 37526

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40442

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40394

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40492

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40491

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40490

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40480

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40438

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40488

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `tables`.`Visible` = 1
                INNER JOIN `halls` ON
                    `halls`.`ID` = `tables`.`HallID` AND
                    `halls`.`Visible` = 1
            WHERE
                `ReservationID` = 40463

