# [29-Dec-2024 18:08:23] /aria/res/bg/ajax/staff/login.html?c=0000&_=1735488504524 108.61.209.243

set names utf8

SELECT
                CONCAT(`ID`, '.', CRC32(`PassCode`), '.', `Visible`) AS `Key`
            FROM
                `staff`
            WHERE
                `PassCode` = '0000'
            LIMIT 1
# [29-Dec-2024 18:08:26] /aria/res/bg/ajax/staff/login.html?c=1234&_=1735488507431 108.61.209.243

set names utf8

SELECT
                CONCAT(`ID`, '.', CRC32(`PassCode`), '.', `Visible`) AS `Key`
            FROM
                `staff`
            WHERE
                `PassCode` = '1234'
            LIMIT 1
# [29-Dec-2024 18:08:26] /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
# [29-Dec-2024 18:08:59] /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
# [29-Dec-2024 18:09: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
# [29-Dec-2024 18:09:02] /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
# [29-Dec-2024 18:09:06] /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
# [29-Dec-2024 18:09:42] /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
# [29-Dec-2024 18:10:21] /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
# [29-Dec-2024 18:11:11] /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
# [29-Dec-2024 18:17:38] /aria/res/bg/ajax/staff/login.html?c=1234&_=1735489059072 108.61.209.243

set names utf8

SELECT
                CONCAT(`ID`, '.', CRC32(`PassCode`), '.', `Visible`) AS `Key`
            FROM
                `staff`
            WHERE
                `PassCode` = '1234'
            LIMIT 1
# [29-Dec-2024 18:17: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
