SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 14:51:36] /aria/res/bg/reservations/current.html 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 14:54:05] /aria/res/bg/reservations/current.html 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 14:54:27] /aria/res/bg/reservations/current.html 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 14:54:49] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 14:55:45] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 14:56:19] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 14:58:58] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 14:59:01] /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

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
# [15-Aug-2024 14:59:03] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 15:01:36] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 15:02:18] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 15:02:32] /aria/res/bg/halls/current.html 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 15:34:06] /aria/res/bg/reservations/current.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                `reservations`.`ID`,
                `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,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            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
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
        
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC

SELECT
                `halls`.`HallName`,
                `tables`.`Number` AS `TableNumber`
            FROM
                `reservation_tables`
                INNER JOIN `tables` 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
# [15-Aug-2024 15:34:08] /aria/res/bg/reservations/form.html 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 15:34:09] /aria/res/bg/reservations/calendar.html 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 15:34:18] /aria/res/bg 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 15:34:23] /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 15:34:25] /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 15:34:58] /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

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
# [15-Aug-2024 15:35:00] /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

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
# [15-Aug-2024 15:35:03] /aria/res/bg/requests.html 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 15:35:06] /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

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
# [15-Aug-2024 15:35:08] /aria/res/bg/reservations/calendar.html 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 15:35:08] /aria/res/bg/reservations/form.html 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 15:53:56] /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

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
# [15-Aug-2024 15:53:57] /aria/res/bg/requests.html 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 15:54:22] /aria/res/bg/requests.html 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 15:54:43] /aria/res/bg/requests.html 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 15:56:43] /aria/res/bg/requests.html 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 15:57:35] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:57:47] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:57:48] /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

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
# [15-Aug-2024 15:57:49] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:58:20] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:58:35] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:58:48] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 15:58:56] /aria/res/bg/reservations/form/request_5.html 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 17:12:20] /aria/res/bg/reservations/form/request_5.html 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 17:13:31] /aria/res/bg/reservations/form/request_5.html 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 17:13:41] /aria/res/bg/reservations/calendar.html 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 17:15:38] /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

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
# [15-Aug-2024 17:18:29] /aria/res/bg/requests.html 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

SELECT
                *
            FROM
                `requests`
            WHERE
                `ResDate` >= CURDATE()
        
            ORDER BY
                `requests`.`ResDate` DESC,
                `requests`.`ResTime` DESC
# [15-Aug-2024 17:18:34] /aria/res/bg/halls/current.html 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 17:18:44] /aria/res/bg/reservations/calendar.html 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 17:18:49] /aria/res/bg/reservations.html?from=15.08.2024&to=15.08.2024 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 17:23:47] /aria/res/bg/reservations.html?from=15.08.2024&to=15.08.2024 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

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
         AND `reservations`.`ResDate` BETWEEN '2024-08-15 00:00:00' AND '2024-08-15 23:59:59' 
            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` = 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
# [15-Aug-2024 17:24:02] /aria/res/bg/reservations.html?from=15.08.2024&to=17.08.2024 108.61.209.243

set names utf8

SELECT
                                `Data`
                            FROM
                                `staff`
                            WHERE
                                `ID` = 1 AND
                                CRC32(`PassCode`) = 2615402659 AND
                                `Visible` = 1
                            LIMIT 1

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
         AND `reservations`.`ResDate` BETWEEN '2024-08-15 00:00:00' AND '2024-08-17 23:59:59' 
            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` = 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
