
set names utf8
# [29-Oct-2024 14:14:00] /aria/root/bg/users/login.html 167.99.142.201

SELECT
                        `ID`,
                        `Data`
                    FROM
                        `aria`.`staff`
                    WHERE
                        `PassCode` = '1234' AND
                        Visible = 1
                    LIMIT 1

set names utf8
# [29-Oct-2024 14:14:02] /aria/root/bg/users/login.html 167.99.142.201

SELECT
                        `ID`,
                        `Data`
                    FROM
                        `aria`.`staff`
                    WHERE
                        `PassCode` = '1111' AND
                        Visible = 1
                    LIMIT 1

set names utf8
# [29-Oct-2024 14:14:02] /aria/root/ 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                            `clients`.`FullName` AS ClientName
                        FROM
                            `reservations`
                            INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`

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, 300

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40500

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

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40494

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

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40498

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40497

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

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40391

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

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

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

SELECT
                        `halls`.`HallName`,
                        `tables`.`Number` AS TableNumber
                    FROM
                        `reservation_tables`
                        INNER JOIN `tables` ON
                            `tables`.`ID` = `reservation_tables`.`TableID` AND
                            `tables`.`Visible` = 1
                        INNER JOIN `halls` ON
                            `halls`.`ID` = `tables`.`HallID` AND
                            `halls`.`Language` = 'bg'
                    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`.`Language` = 'bg'
                    WHERE
                        `ReservationID` = 40421

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

set names utf8
# [29-Oct-2024 14:14:03] /aria/root/bg/resweb/num.html?_=1730204042985 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:06] /aria/root/bg/reservations/form.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `halls`.`ID`,
                `halls`.`HallName`,
                (SELECT
                    SUM(`tables`.`Seats`) AS 'HallSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallSeats',
                (SELECT
                    SUM(`tables`.`AdSeats`) AS 'HallAdSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallAdSeats',
                0 AS 'HallTablesNum'
            FROM
                `halls`
            WHERE
                `halls`.`Language` = 'bg'
            ORDER BY
                `halls`.`PostDate` ASC

SELECT
                `tables`.`ID`
            FROM
                `tables`
                INNER JOIN `reservation_tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `reservation_tables`.`ReservationID` = '0'
            WHERE
                `tables`.`Visible` = 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:14:00' AND '19:14:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:14:06] /aria/root/bg/resweb/num.html?_=1730204046599 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:12] /aria/root/bg/resweb/num.html?_=1730204046600 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:17] /aria/root/bg/tables/shema/hallid_1/time_1730192400.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '06:00:00' AND '16:00:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:14:18] /aria/root/bg/resweb/num.html?_=1730204046601 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:21] /aria/root/bg/tables/shema/hallid_1/time_1730215800.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '12:30:00' AND '22:30:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:14:24] /aria/root/bg/resweb/num.html?_=1730204046602 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:31] /aria/root/bg/resweb/num.html?_=1730204046603 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:37] /aria/root/bg/resweb/num.html?_=1730204046604 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:43] /aria/root/bg/resweb/num.html?_=1730204046605 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:49] /aria/root/bg/resweb/num.html?_=1730204046606 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:14:55] /aria/root/bg/resweb/num.html?_=1730204046607 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:01] /aria/root/bg/resweb/num.html?_=1730204046608 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:07] /aria/root/bg/resweb/num.html?_=1730204046609 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:13] /aria/root/bg/resweb/num.html?_=1730204046610 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:19] /aria/root/bg/resweb/num.html?_=1730204046611 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:25] /aria/root/bg/resweb/num.html?_=1730204046612 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:31] /aria/root/bg/resweb/num.html?_=1730204046613 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:37] /aria/root/bg/resweb/num.html?_=1730204046614 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:43] /aria/root/bg/resweb/num.html?_=1730204046615 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:49] /aria/root/bg/resweb/num.html?_=1730204046616 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:15:55] /aria/root/bg/resweb/num.html?_=1730204046617 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:01] /aria/root/bg/resweb/num.html?_=1730204046618 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:07] /aria/root/bg/resweb/num.html?_=1730204046619 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:13] /aria/root/bg/resweb/num.html?_=1730204046620 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:19] /aria/root/bg/resweb/num.html?_=1730204046621 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:25] /aria/root/bg/resweb/num.html?_=1730204046622 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:31] /aria/root/bg/resweb/num.html?_=1730204046623 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:37] /aria/root/bg/resweb/num.html?_=1730204046624 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:43] /aria/root/bg/resweb/num.html?_=1730204046625 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:49] /aria/root/bg/resweb/num.html?_=1730204046626 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:16:55] /aria/root/bg/resweb/num.html?_=1730204046627 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:01] /aria/root/bg/resweb/num.html?_=1730204046628 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:08] /aria/root/bg/resweb/num.html?_=1730204046629 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:14] /aria/root/bg/resweb/num.html?_=1730204046630 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:20] /aria/root/bg/resweb/num.html?_=1730204046631 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:26] /aria/root/bg/resweb/num.html?_=1730204046632 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:32] /aria/root/bg/resweb/num.html?_=1730204046633 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:38] /aria/root/bg/resweb/num.html?_=1730204046634 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:44] /aria/root/bg/resweb/num.html?_=1730204046635 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:50] /aria/root/bg/resweb/num.html?_=1730204046636 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:17:56] /aria/root/bg/resweb/num.html?_=1730204046637 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:02] /aria/root/bg/resweb/num.html?_=1730204046638 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:08] /aria/root/bg/resweb/num.html?_=1730204046639 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:14] /aria/root/bg/resweb/num.html?_=1730204046640 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:20] /aria/root/bg/resweb/num.html?_=1730204046641 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:26] /aria/root/bg/resweb/num.html?_=1730204046642 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:32] /aria/root/bg/resweb/num.html?_=1730204046643 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:38] /aria/root/bg/resweb/num.html?_=1730204046644 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:44] /aria/root/bg/resweb/num.html?_=1730204046645 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:50] /aria/root/bg/resweb/num.html?_=1730204046646 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:18:56] /aria/root/bg/resweb/num.html?_=1730204046647 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:02] /aria/root/bg/resweb/num.html?_=1730204046648 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:08] /aria/root/bg/resweb/num.html?_=1730204046649 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:14] /aria/root/bg/resweb/num.html?_=1730204046650 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:20] /aria/root/bg/resweb/num.html?_=1730204046651 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:26] /aria/root/bg/resweb/num.html?_=1730204046652 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:32] /aria/root/bg/resweb/num.html?_=1730204046653 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:38] /aria/root/bg/resweb/num.html?_=1730204046654 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:44] /aria/root/bg/resweb/num.html?_=1730204046655 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:50] /aria/root/bg/resweb/num.html?_=1730204046656 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:19:56] /aria/root/bg/resweb/num.html?_=1730204046657 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:02] /aria/root/bg/resweb/num.html?_=1730204046658 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:08] /aria/root/bg/reservations/current.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `reservations`.`ID`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */

SELECT
                                `ID`, `HallName`
                            FROM
                                `halls`
                            WHERE
                                `halls`.`Language` = 'bg'
                            ORDER BY
                                `halls`.`PostDate` ASC

set names utf8
# [29-Oct-2024 14:20:09] /aria/root/bg/resweb/num.html?_=1730204408971 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:13] /aria/root/bg/reservations/form.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `halls`.`ID`,
                `halls`.`HallName`,
                (SELECT
                    SUM(`tables`.`Seats`) AS 'HallSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallSeats',
                (SELECT
                    SUM(`tables`.`AdSeats`) AS 'HallAdSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallAdSeats',
                0 AS 'HallTablesNum'
            FROM
                `halls`
            WHERE
                `halls`.`Language` = 'bg'
            ORDER BY
                `halls`.`PostDate` ASC

SELECT
                `tables`.`ID`
            FROM
                `tables`
                INNER JOIN `reservation_tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `reservation_tables`.`ReservationID` = '0'
            WHERE
                `tables`.`Visible` = 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:20:00' AND '19:20:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:20:13] /aria/root/bg/resweb/num.html?_=1730204413126 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:15] /aria/root/bg/tables/shema/hallid_1/time_1730376000.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-31' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:00:00' AND '19:00:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:20:16] /aria/root/bg/tables/shema/hallid_1/time_1730385000.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-31' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '11:30:00' AND '21:30:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:20:19] /aria/root/bg/resweb/num.html?_=1730204413127 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:25] /aria/root/bg/resweb/num.html?_=1730204413128 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:31] /aria/root/bg/resweb/num.html?_=1730204413129 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:37] /aria/root/bg/resweb/num.html?_=1730204413130 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:43] /aria/root/bg/resweb/num.html?_=1730204413131 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:49] /aria/root/bg/resweb/num.html?_=1730204413132 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:20:55] /aria/root/bg/resweb/num.html?_=1730204413133 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:01] /aria/root/bg/resweb/num.html?_=1730204413134 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:07] /aria/root/bg/resweb/num.html?_=1730204413135 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:12] /aria/root/bg/reservations/current.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `reservations`.`ID`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */

SELECT
                                `ID`, `HallName`
                            FROM
                                `halls`
                            WHERE
                                `halls`.`Language` = 'bg'
                            ORDER BY
                                `halls`.`PostDate` ASC

set names utf8
# [29-Oct-2024 14:21:12] /aria/root/bg/resweb/num.html?_=1730204472118 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:18] /aria/root/bg/resweb/num.html?_=1730204472119 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:24] /aria/root/bg/resweb/num.html?_=1730204472120 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:30] /aria/root/bg/resweb/num.html?_=1730204472121 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:36] /aria/root/bg/resweb/num.html?_=1730204472122 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:42] /aria/root/bg/resweb/num.html?_=1730204472123 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:48] /aria/root/bg/resweb/num.html?_=1730204472124 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:21:54] /aria/root/bg/resweb/num.html?_=1730204472125 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:00] /aria/root/bg/resweb/num.html?_=1730204472126 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:06] /aria/root/bg/resweb/num.html?_=1730204472127 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:12] /aria/root/bg/resweb/num.html?_=1730204472128 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:18] /aria/root/bg/resweb/num.html?_=1730204472129 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:24] /aria/root/bg/resweb/num.html?_=1730204472130 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:30] /aria/root/bg/resweb/num.html?_=1730204472131 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:36] /aria/root/bg/resweb/num.html?_=1730204472132 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:42] /aria/root/bg/resweb/num.html?_=1730204472133 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:48] /aria/root/bg/resweb/num.html?_=1730204472134 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:22:54] /aria/root/bg/resweb/num.html?_=1730204472135 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:00] /aria/root/bg/resweb/num.html?_=1730204472136 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:06] /aria/root/bg/resweb/num.html?_=1730204472137 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:12] /aria/root/bg/resweb/num.html?_=1730204472138 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:18] /aria/root/bg/resweb/num.html?_=1730204472139 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:24] /aria/root/bg/resweb/num.html?_=1730204472140 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:30] /aria/root/bg/resweb/num.html?_=1730204472141 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:36] /aria/root/bg/resweb/num.html?_=1730204472142 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:42] /aria/root/bg/resweb/num.html?_=1730204472143 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:48] /aria/root/bg/resweb/num.html?_=1730204472144 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:23:54] /aria/root/bg/resweb/num.html?_=1730204472145 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:00] /aria/root/bg/resweb/num.html?_=1730204472146 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:06] /aria/root/bg/resweb/num.html?_=1730204472147 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:12] /aria/root/bg/resweb/num.html?_=1730204472148 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:18] /aria/root/bg/resweb/num.html?_=1730204472149 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:24] /aria/root/bg/resweb/num.html?_=1730204472150 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:30] /aria/root/bg/resweb/num.html?_=1730204472151 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:36] /aria/root/bg/resweb/num.html?_=1730204472152 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:42] /aria/root/bg/resweb/num.html?_=1730204472153 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:48] /aria/root/bg/resweb/num.html?_=1730204472154 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:24:54] /aria/root/bg/resweb/num.html?_=1730204472155 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:00] /aria/root/bg/resweb/num.html?_=1730204472156 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:06] /aria/root/bg/resweb/num.html?_=1730204472157 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:12] /aria/root/bg/resweb/num.html?_=1730204472158 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:18] /aria/root/bg/resweb/num.html?_=1730204472159 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:24] /aria/root/bg/resweb/num.html?_=1730204472160 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:30] /aria/root/bg/resweb/num.html?_=1730204472161 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:36] /aria/root/bg/resweb/num.html?_=1730204472162 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:42] /aria/root/bg/resweb/num.html?_=1730204472163 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:48] /aria/root/bg/resweb/num.html?_=1730204472164 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:25:54] /aria/root/bg/resweb/num.html?_=1730204472165 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:00] /aria/root/bg/resweb/num.html?_=1730204472166 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:06] /aria/root/bg/resweb/num.html?_=1730204472167 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:12] /aria/root/bg/resweb/num.html?_=1730204472168 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:18] /aria/root/bg/resweb/num.html?_=1730204472169 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:24] /aria/root/bg/resweb/num.html?_=1730204472170 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:30] /aria/root/bg/resweb/num.html?_=1730204472171 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:36] /aria/root/bg/resweb/num.html?_=1730204472172 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:42] /aria/root/bg/resweb/num.html?_=1730204472173 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:48] /aria/root/bg/resweb/num.html?_=1730204472174 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:26:54] /aria/root/bg/resweb/num.html?_=1730204472175 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:00] /aria/root/bg/resweb/num.html?_=1730204472176 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:06] /aria/root/bg/resweb/num.html?_=1730204472177 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:12] /aria/root/bg/resweb/num.html?_=1730204472178 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:18] /aria/root/bg/resweb/num.html?_=1730204472179 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:24] /aria/root/bg/resweb/num.html?_=1730204472180 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:30] /aria/root/bg/resweb/num.html?_=1730204472181 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:36] /aria/root/bg/resweb/num.html?_=1730204472182 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:42] /aria/root/bg/resweb/num.html?_=1730204472183 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:48] /aria/root/bg/resweb/num.html?_=1730204472184 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:27:54] /aria/root/bg/resweb/num.html?_=1730204472185 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:00] /aria/root/bg/resweb/num.html?_=1730204472186 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:06] /aria/root/bg/resweb/num.html?_=1730204472187 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:12] /aria/root/bg/resweb/num.html?_=1730204472188 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:18] /aria/root/bg/resweb/num.html?_=1730204472189 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:24] /aria/root/bg/resweb/num.html?_=1730204472190 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:30] /aria/root/bg/resweb/num.html?_=1730204472191 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:36] /aria/root/bg/resweb/num.html?_=1730204472192 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:42] /aria/root/bg/resweb/num.html?_=1730204472193 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:49] /aria/root/bg/resweb/num.html?_=1730204472194 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:28:55] /aria/root/bg/resweb/num.html?_=1730204472195 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:01] /aria/root/bg/resweb/num.html?_=1730204472196 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:07] /aria/root/bg/resweb/num.html?_=1730204472197 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:13] /aria/root/bg/resweb/num.html?_=1730204472198 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:19] /aria/root/bg/resweb/num.html?_=1730204472199 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:25] /aria/root/bg/resweb/num.html?_=1730204472200 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:31] /aria/root/bg/resweb/num.html?_=1730204472201 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:37] /aria/root/bg/resweb/num.html?_=1730204472202 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:43] /aria/root/bg/resweb/num.html?_=1730204472203 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:49] /aria/root/bg/resweb/num.html?_=1730204472204 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:29:55] /aria/root/bg/resweb/num.html?_=1730204472205 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:01] /aria/root/bg/resweb/num.html?_=1730204472206 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:07] /aria/root/bg/resweb/num.html?_=1730204472207 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:13] /aria/root/bg/resweb/num.html?_=1730204472208 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:19] /aria/root/bg/resweb/num.html?_=1730204472209 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:25] /aria/root/bg/resweb/num.html?_=1730204472210 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:31] /aria/root/bg/resweb/num.html?_=1730204472211 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:37] /aria/root/bg/resweb/num.html?_=1730204472212 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:43] /aria/root/bg/resweb/num.html?_=1730204472213 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:49] /aria/root/bg/resweb/num.html?_=1730204472214 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:30:55] /aria/root/bg/resweb/num.html?_=1730204472215 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:01] /aria/root/bg/resweb/num.html?_=1730204472216 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:07] /aria/root/bg/resweb/num.html?_=1730204472217 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:13] /aria/root/bg/resweb/num.html?_=1730204472218 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:19] /aria/root/bg/resweb/num.html?_=1730204472219 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:20] /aria/root/bg/reservations/calendar.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

set names utf8
# [29-Oct-2024 14:31:20] /aria/root/bg/resweb/num.html?_=1730205080569 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:20] /aria/root/bg/reservations/days/2024-10.html?_=1730205080570 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `ResDate`
            FROM
                `reservations`
            WHERE
                `ResDate` LIKE '2024-10%'
            ORDER BY `reservations`.`ResDate` ASC

set names utf8
# [29-Oct-2024 14:31:26] /aria/root/bg/resweb/num.html?_=1730205080571 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:27] /aria/root/bg/reservations/week.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                                `clients`.`FullName` AS ClientName
                            FROM
                                `reservations`
                                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                            WHERE
                                `reservations`.`ResDate` BETWEEN '2024-10-29' AND '2024-11-05'

SELECT
                `reservations`.`ID`,
                `reservations`.`ResDate`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                `res_cancellations`.`ReservationID` AS Canceled
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                1
         AND  `reservations`.`ResDate` BETWEEN STR_TO_DATE(CONCAT(YEAR(NOW()), WEEK(NOW()), 'Monday'), '%X%V %W') AND STR_TO_DATE(CONCAT(YEAR(NOW()), WEEK(NOW())+1, 'Sunday'), '%X%V %W') 
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 300

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

set names utf8
# [29-Oct-2024 14:31:27] /aria/root/bg/resweb/num.html?_=1730205087206 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:33] /aria/root/bg/resweb/num.html?_=1730205087207 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:39] /aria/root/bg/resweb/num.html?_=1730205087208 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:43] /aria/root/bg/reservations/current.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `reservations`.`ID`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */

SELECT
                                `ID`, `HallName`
                            FROM
                                `halls`
                            WHERE
                                `halls`.`Language` = 'bg'
                            ORDER BY
                                `halls`.`PostDate` ASC

set names utf8
# [29-Oct-2024 14:31:43] /aria/root/bg/resweb/num.html?_=1730205103513 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:49] /aria/root/bg/resweb/num.html?_=1730205103514 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:31:55] /aria/root/bg/resweb/num.html?_=1730205103515 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:01] /aria/root/bg/resweb/num.html?_=1730205103516 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:07] /aria/root/bg/resweb/num.html?_=1730205103517 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:13] /aria/root/bg/resweb/num.html?_=1730205103518 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:19] /aria/root/bg/resweb/num.html?_=1730205103519 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:25] /aria/root/bg/resweb/num.html?_=1730205103520 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:31] /aria/root/bg/resweb/num.html?_=1730205103521 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:37] /aria/root/bg/resweb/num.html?_=1730205103522 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:44] /aria/root/bg/resweb/num.html?_=1730205103523 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:50] /aria/root/bg/resweb/num.html?_=1730205103524 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:32:56] /aria/root/bg/resweb/num.html?_=1730205103525 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:02] /aria/root/bg/resweb/num.html?_=1730205103526 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:08] /aria/root/bg/resweb/num.html?_=1730205103527 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:14] /aria/root/bg/resweb/num.html?_=1730205103528 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:20] /aria/root/bg/resweb/num.html?_=1730205103529 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:26] /aria/root/bg/resweb/num.html?_=1730205103530 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:32] /aria/root/bg/resweb/num.html?_=1730205103531 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:38] /aria/root/bg/resweb/num.html?_=1730205103532 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:44] /aria/root/bg/resweb/num.html?_=1730205103533 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:50] /aria/root/bg/resweb/num.html?_=1730205103534 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:33:56] /aria/root/bg/resweb/num.html?_=1730205103535 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:02] /aria/root/bg/resweb/num.html?_=1730205103536 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:08] /aria/root/bg/resweb/num.html?_=1730205103537 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:14] /aria/root/bg/resweb/num.html?_=1730205103538 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:20] /aria/root/bg/resweb/num.html?_=1730205103539 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:26] /aria/root/bg/reservations/current.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `reservations`.`ID`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */

SELECT
                                `ID`, `HallName`
                            FROM
                                `halls`
                            WHERE
                                `halls`.`Language` = 'bg'
                            ORDER BY
                                `halls`.`PostDate` ASC

set names utf8
# [29-Oct-2024 14:34:26] /aria/root/bg/resweb/num.html?_=1730205266032 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:28] /aria/root/bg/reservations/current/hl_1.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `reservations`.`ID`,
                `reservations`.`ResTime`,
                `reservations`.`Seats`,
                `reservations`.`Specials`,
                `reservations`.`Comment` AS ResComment,
                `clients`.`Phone` AS ClientPhone,
                `clients`.`FullName` AS ClientName,
                `clients`.`Specials` AS ClientSpecials,
                `clients`.`Comment` AS ClientComment,
                `res_arrived`.`ReservationID` AS Arrived,
                IF(`reservations`.`ResTime` < DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 10 MINUTE), '%H:%i:%s'), 1, 0) AS ClientLate /* закаснява повече от 10 мин */
            FROM
                `reservations`
                INNER JOIN `clients` ON `clients`.`ID` = `reservations`.`ClientID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
                LEFT JOIN `res_arrived` ON `res_arrived`.`ReservationID` = `reservations`.`ID`
            WHERE
                `reservations`.`ResDate` = CURDATE() AND
                `reservations`.`ResTime` > DATE_FORMAT(DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR), '%H:%i:%s') AND  /* до 1 час закъснение */
                /* `reservations`.`ResTime` < DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL 4 HOUR), '%H:%i:%s') AND за следващите 4 часа // NE RABORI SLED 8 CHASA */
                `res_cancellations`.`ReservationID` IS NULL /* AND ne e kanselirana */
                /*`res_arrived`.`ReservationID` IS NULL   klienta oshte ne e pristignal(sluvitel ne e natisnal buton pristignal) */
         AND  `reservations`.`ID` IN (
                SELECT DISTINCT
                    `reservations`.`ID`
                FROM
                    `reservations`
                    INNER JOIN `reservation_tables` ON `reservations`.`ID` = `reservation_tables`.`ReservationID`
                    INNER JOIN `tables` ON `reservation_tables`.`TableID` = `tables`.`ID`
                WHERE
                    `reservations`.`ResDate` = CURDATE() AND
                    `tables`.`HallID` = '1'
            )

SELECT
                                `ID`, `HallName`
                            FROM
                                `halls`
                            WHERE
                                `halls`.`Language` = 'bg'
                            ORDER BY
                                `halls`.`PostDate` ASC

set names utf8
# [29-Oct-2024 14:34:28] /aria/root/bg/resweb/num.html?_=1730205268658 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:30] /aria/root/bg/reservations/form.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `halls`.`ID`,
                `halls`.`HallName`,
                (SELECT
                    SUM(`tables`.`Seats`) AS 'HallSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallSeats',
                (SELECT
                    SUM(`tables`.`AdSeats`) AS 'HallAdSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallAdSeats',
                0 AS 'HallTablesNum'
            FROM
                `halls`
            WHERE
                `halls`.`Language` = 'bg'
            ORDER BY
                `halls`.`PostDate` ASC

SELECT
                `tables`.`ID`
            FROM
                `tables`
                INNER JOIN `reservation_tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `reservation_tables`.`ReservationID` = '0'
            WHERE
                `tables`.`Visible` = 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:34:00' AND '19:34:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:34:30] /aria/root/bg/resweb/num.html?_=1730205270081 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:36] /aria/root/bg/resweb/num.html?_=1730205270082 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:42] /aria/root/bg/resweb/num.html?_=1730205270083 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:48] /aria/root/bg/resweb/num.html?_=1730205270084 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:34:54] /aria/root/bg/resweb/num.html?_=1730205270085 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:00] /aria/root/bg/resweb/num.html?_=1730205270086 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:06] /aria/root/bg/resweb/num.html?_=1730205270087 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:12] /aria/root/bg/resweb/num.html?_=1730205270088 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:18] /aria/root/bg/resweb/num.html?_=1730205270089 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:24] /aria/root/bg/resweb/num.html?_=1730205270090 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:30] /aria/root/bg/resweb/num.html?_=1730205270091 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:36] /aria/root/bg/resweb/num.html?_=1730205270092 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:42] /aria/root/bg/resweb/num.html?_=1730205270093 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:47] /aria/root/bg/reservations/form.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                `halls`.`ID`,
                `halls`.`HallName`,
                (SELECT
                    SUM(`tables`.`Seats`) AS 'HallSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallSeats',
                (SELECT
                    SUM(`tables`.`AdSeats`) AS 'HallAdSeats'
                FROM
                    `tables`
                WHERE
                   `tables`.`HallID` = `halls`.`ID` AND
                   `tables`.`Visible` = 1) AS 'HallAdSeats',
                0 AS 'HallTablesNum'
            FROM
                `halls`
            WHERE
                `halls`.`Language` = 'bg'
            ORDER BY
                `halls`.`PostDate` ASC

SELECT
                `tables`.`ID`
            FROM
                `tables`
                INNER JOIN `reservation_tables` ON
                    `tables`.`ID` = `reservation_tables`.`TableID` AND
                    `reservation_tables`.`ReservationID` = '0'
            WHERE
                `tables`.`Visible` = 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:35:00' AND '19:35:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:35:48] /aria/root/bg/resweb/num.html?_=1730205348145 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:35:51] /aria/root/bg/tables/shema/hallid_1/time_1730203200.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT DISTINCT
                `tables`.`ID`,
                `tables`.`HallID`,
                `tables`.`Number`,
                `reservations`.`ResTime`
            FROM
                `reservations`
                INNER JOIN `reservation_tables` ON `reservation_tables`.`ReservationID` = `reservations`.`ID`
                INNER JOIN `tables` ON `tables`.`ID` = `reservation_tables`.`TableID`
                LEFT JOIN `res_cancellations` ON `res_cancellations`.`ReservationID` = `reservations`.`ID`
            WHERE
                `res_cancellations`.`ReservationID` IS NULL AND /* masata e swobodna ako rezerwaviqta e kanselirana */
                 `reservations`.`ResDate` = '2024-10-29' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:00:00' AND '19:00:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '1' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '1'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '1' AND
                `halls`.`Language` = 'bg'
            LIMIT 1

set names utf8
# [29-Oct-2024 14:35:54] /aria/root/bg/resweb/num.html?_=1730205348146 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:00] /aria/root/bg/resweb/num.html?_=1730205348147 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:06] /aria/root/bg/resweb/num.html?_=1730205348148 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:12] /aria/root/bg/resweb/num.html?_=1730205348149 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:18] /aria/root/bg/resweb/num.html?_=1730205348150 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:24] /aria/root/bg/resweb/num.html?_=1730205348151 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:30] /aria/root/bg/resweb/num.html?_=1730205348152 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:36] /aria/root/bg/resweb/num.html?_=1730205348153 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:42] /aria/root/bg/resweb/num.html?_=1730205348154 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:48] /aria/root/bg/resweb/num.html?_=1730205348155 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:36:55] /aria/root/bg/resweb/num.html?_=1730205348156 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:01] /aria/root/bg/resweb/num.html?_=1730205348157 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:07] /aria/root/bg/resweb/num.html?_=1730205348158 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:13] /aria/root/bg/resweb/num.html?_=1730205348159 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:19] /aria/root/bg/resweb/num.html?_=1730205348160 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:25] /aria/root/bg/resweb/num.html?_=1730205348161 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:31] /aria/root/bg/resweb/num.html?_=1730205348162 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:37] /aria/root/bg/resweb/num.html?_=1730205348163 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:43] /aria/root/bg/resweb/num.html?_=1730205348164 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:49] /aria/root/bg/resweb/num.html?_=1730205348165 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:37:55] /aria/root/bg/resweb/num.html?_=1730205348166 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:01] /aria/root/bg/resweb/num.html?_=1730205348167 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:07] /aria/root/bg/resweb/num.html?_=1730205348168 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:13] /aria/root/bg/resweb/num.html?_=1730205348169 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:20] /aria/root/bg/resweb/num.html?_=1730205348170 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:26] /aria/root/bg/resweb/num.html?_=1730205348171 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:32] /aria/root/bg/resweb/num.html?_=1730205348172 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:38] /aria/root/bg/resweb/num.html?_=1730205348173 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:44] /aria/root/bg/resweb/num.html?_=1730205348174 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:50] /aria/root/bg/resweb/num.html?_=1730205348175 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:38:56] /aria/root/bg/resweb/num.html?_=1730205348176 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:02] /aria/root/bg/resweb/num.html?_=1730205348177 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:08] /aria/root/bg/resweb/num.html?_=1730205348178 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:14] /aria/root/bg/resweb/num.html?_=1730205348179 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:20] /aria/root/bg/resweb/num.html?_=1730205348180 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:26] /aria/root/bg/resweb/num.html?_=1730205348181 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:32] /aria/root/bg/resweb/num.html?_=1730205348182 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:38] /aria/root/bg/resweb/num.html?_=1730205348183 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:44] /aria/root/bg/resweb/num.html?_=1730205348184 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:50] /aria/root/bg/resweb/num.html?_=1730205348185 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:39:56] /aria/root/bg/resweb/num.html?_=1730205348186 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:02] /aria/root/bg/resweb/num.html?_=1730205348187 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:09] /aria/root/bg/resweb/num.html?_=1730205348188 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:15] /aria/root/bg/resweb/num.html?_=1730205348189 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:21] /aria/root/bg/resweb/num.html?_=1730205348190 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:27] /aria/root/bg/resweb/num.html?_=1730205348191 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:33] /aria/root/bg/resweb/num.html?_=1730205348192 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `aria`.`requests`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [29-Oct-2024 14:40:39] /aria/root/bg/resweb/num.html?_=1730205348193 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `aria`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

