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

set names utf8
# [12-Apr-2023 15:50:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552407 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:44] /constantinoff/res/root/bg/resweb/num.html?_=1681303830902 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552408 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:50] /constantinoff/res/root/bg/resweb/num.html?_=1681303830903 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552409 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:56] /constantinoff/res/root/bg/resweb/num.html?_=1681303830904 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:50:59] /constantinoff/res/root/bg/resweb/num.html?_=1681300552410 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:02] /constantinoff/res/root/bg/resweb/num.html?_=1681303830905 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552411 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:08] /constantinoff/res/root/bg/resweb/num.html?_=1681303830906 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:11] /constantinoff/res/root/bg/resweb/num.html?_=1681300552412 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:14] /constantinoff/res/root/bg/resweb/num.html?_=1681303830907 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:17] /constantinoff/res/root/bg/resweb/num.html?_=1681300552413 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:20] /constantinoff/res/root/bg/resweb/num.html?_=1681303830908 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:23] /constantinoff/res/root/bg/resweb/num.html?_=1681300552414 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:26] /constantinoff/res/root/bg/resweb/num.html?_=1681303830909 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:29] /constantinoff/res/root/bg/resweb/num.html?_=1681300552415 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:32] /constantinoff/res/root/bg/resweb/num.html?_=1681303830910 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:35] /constantinoff/res/root/bg/resweb/num.html?_=1681300552416 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:38] /constantinoff/res/root/bg/resweb/num.html?_=1681303830911 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:38] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:51:38] /constantinoff/res/root/bg/resweb/num.html?_=1681303903340 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552417 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:44] /constantinoff/res/root/bg/resweb/num.html?_=1681303903341 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552418 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:50] /constantinoff/res/root/bg/resweb/num.html?_=1681303903342 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552419 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:56] /constantinoff/res/root/bg/resweb/num.html?_=1681303903343 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:51:59] /constantinoff/res/root/bg/resweb/num.html?_=1681300552420 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:02] /constantinoff/res/root/bg/resweb/num.html?_=1681303903344 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552421 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:08] /constantinoff/res/root/bg/resweb/num.html?_=1681303903345 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:11] /constantinoff/res/root/bg/resweb/num.html?_=1681300552422 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:14] /constantinoff/res/root/bg/resweb/num.html?_=1681303903346 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:17] /constantinoff/res/root/bg/resweb/num.html?_=1681300552423 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:20] /constantinoff/res/root/bg/resweb/num.html?_=1681303903347 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:23] /constantinoff/res/root/bg/resweb/num.html?_=1681300552424 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:26] /constantinoff/res/root/bg/resweb/num.html?_=1681303903348 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:29] /constantinoff/res/root/bg/resweb/num.html?_=1681300552425 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:32] /constantinoff/res/root/bg/resweb/num.html?_=1681303903349 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:35] /constantinoff/res/root/bg/resweb/num.html?_=1681300552426 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:38] /constantinoff/res/root/bg/resweb/num.html?_=1681303903350 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552427 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:44] /constantinoff/res/root/bg/resweb/num.html?_=1681303903351 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552428 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:50] /constantinoff/res/root/bg/resweb/num.html?_=1681303903352 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552429 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:56] /constantinoff/res/root/bg/resweb/num.html?_=1681303903353 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:52:59] /constantinoff/res/root/bg/resweb/num.html?_=1681300552430 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:02] /constantinoff/res/root/bg/resweb/num.html?_=1681303903354 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552431 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:08] /constantinoff/res/root/bg/resweb/num.html?_=1681303903355 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:11] /constantinoff/res/root/bg/resweb/num.html?_=1681300552432 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:14] /constantinoff/res/root/bg/resweb/num.html?_=1681303903356 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:17] /constantinoff/res/root/bg/resweb/num.html?_=1681300552433 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:20] /constantinoff/res/root/bg/resweb/num.html?_=1681303903357 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:23] /constantinoff/res/root/bg/resweb/num.html?_=1681300552434 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:26] /constantinoff/res/root/bg/resweb/num.html?_=1681303903358 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:29] /constantinoff/res/root/bg/resweb/num.html?_=1681300552435 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:32] /constantinoff/res/root/bg/resweb/num.html?_=1681303903359 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:35] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:53:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304020250 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:35] /constantinoff/res/root/bg/resweb/num.html?_=1681300552436 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304020251 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552437 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304020252 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552438 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304020253 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552439 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304020254 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:53:59] /constantinoff/res/root/bg/resweb/num.html?_=1681300552440 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304020255 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552441 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304020256 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:11] /constantinoff/res/root/bg/resweb/num.html?_=1681300552442 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304020257 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:17] /constantinoff/res/root/bg/resweb/num.html?_=1681300552443 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304020258 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:23] /constantinoff/res/root/bg/resweb/num.html?_=1681300552444 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304020259 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:29] /constantinoff/res/root/bg/resweb/num.html?_=1681300552445 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304020260 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:35] /constantinoff/res/root/bg/resweb/num.html?_=1681300552446 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304020261 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552447 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:44] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:54:44] /constantinoff/res/root/bg/resweb/num.html?_=1681304089662 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552448 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304089663 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552449 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304089664 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:54:59] /constantinoff/res/root/bg/resweb/num.html?_=1681300552450 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:02] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:55:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304108067 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:03] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:55:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304108242 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552451 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304108243 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:11] /constantinoff/res/root/bg/resweb/num.html?_=1681300552452 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304108244 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:17] /constantinoff/res/root/bg/resweb/num.html?_=1681300552453 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304108245 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:23] /constantinoff/res/root/bg/resweb/num.html?_=1681300552454 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304108246 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:29] /constantinoff/res/root/bg/resweb/num.html?_=1681300552455 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304108247 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:35] /constantinoff/res/root/bg/resweb/num.html?_=1681300552456 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304108248 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:41] /constantinoff/res/root/bg/resweb/num.html?_=1681300552457 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304108249 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:47] /constantinoff/res/root/bg/resweb/num.html?_=1681300552458 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304108250 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:53] /constantinoff/res/root/bg/resweb/num.html?_=1681300552459 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:55:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304108251 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552460 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304108252 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:05] /constantinoff/res/root/bg/resweb/num.html?_=1681300552461 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304108253 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552462 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304108254 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552463 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304108255 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552464 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304108256 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552465 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304108257 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552466 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304108258 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552467 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304108259 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552468 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304108260 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552469 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:56:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304108261 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552470 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304108262 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552471 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304108263 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552472 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304108264 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552473 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304108265 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552474 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304108266 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552475 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304108267 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:34] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:57:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304259995 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552476 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304259996 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552477 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304259997 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552478 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:53] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:57:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304259998 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304278208 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552479 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:57:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304278209 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552480 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304278210 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552481 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304278211 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552482 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304278212 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552483 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304278213 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552484 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304278214 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552485 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304278215 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552486 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:38] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:58:38] /constantinoff/res/root/bg/resweb/num.html?_=1681304323100 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552487 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:44] /constantinoff/res/root/bg/resweb/num.html?_=1681304323101 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552488 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:50] /constantinoff/res/root/bg/resweb/num.html?_=1681304323102 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552489 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:58:56] /constantinoff/res/root/bg/resweb/num.html?_=1681304323103 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552490 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:02] /constantinoff/res/root/bg/resweb/num.html?_=1681304323104 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552491 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:08] /constantinoff/res/root/bg/resweb/num.html?_=1681304323105 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:11] /constantinoff/res/root/bg/resweb/form/812981.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812981'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-26' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '16:30:00' AND '23:59:59' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 15:59:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304356480 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552492 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304356481 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552493 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304356482 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552494 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304356483 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552495 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304356484 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552496 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304356485 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552497 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304356486 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552498 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304356487 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552499 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 15:59:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304356488 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552500 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304356489 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552501 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:08] /constantinoff/res/root/bg/resweb.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE 1
        
AND
`ResDate` >= CURDATE()
            ORDER BY
                `reservations`.`ResDate` DESC,
                `reservations`.`ResTime` DESC
         LIMIT 0, 300

set names utf8
# [12-Apr-2023 16:00:08] /constantinoff/res/root/bg/resweb/num.html?_=1681304413503 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:11] /constantinoff/res/root/bg/resweb/form/812979.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812979'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-19' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:30:00' AND '17:30:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 16:00:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416674 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552502 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416675 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552503 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416676 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552504 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416677 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552505 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416678 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552506 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416679 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552507 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416680 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552508 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416681 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552509 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:00:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416682 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552510 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416683 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552511 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416684 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552512 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416685 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552513 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:24] /constantinoff/res/root/bg/resweb/num.html?_=1681304416686 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552514 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416687 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552515 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416688 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552516 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416689 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552517 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416690 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552518 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416691 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552519 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:01:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416692 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552520 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416693 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552521 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416694 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552522 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416695 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552523 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416696 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552524 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416697 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552525 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416698 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552526 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416699 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552527 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416700 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552528 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416701 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552529 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:02:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416702 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552530 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416703 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552531 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416704 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552532 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416705 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552533 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416706 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552534 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416707 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552535 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416708 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552536 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416709 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552537 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416710 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552538 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416711 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552539 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:03:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416712 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552540 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416713 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552541 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416714 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552542 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416715 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552543 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416716 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552544 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416717 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552545 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416718 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552546 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416719 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552547 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416720 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552548 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416721 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552549 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:04:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416722 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552550 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416723 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552551 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416724 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552552 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416725 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552553 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416726 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552554 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416727 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552555 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416728 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552556 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416729 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552557 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416730 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552558 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416731 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552559 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:05:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416732 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552560 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416733 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552561 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416734 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552562 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416735 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552563 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416736 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552564 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416737 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552565 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416738 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552566 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416739 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552567 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416740 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552568 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416741 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552569 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:06:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416742 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552570 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416743 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552571 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416744 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552572 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416745 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552573 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416746 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552574 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416747 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552575 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416748 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552576 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416749 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552577 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416750 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552578 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:53] /constantinoff/res/root/bg/resweb/num.html?_=1681304416751 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552579 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:07:59] /constantinoff/res/root/bg/resweb/num.html?_=1681304416752 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552580 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:05] /constantinoff/res/root/bg/resweb/num.html?_=1681304416753 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552581 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:11] /constantinoff/res/root/bg/resweb/num.html?_=1681304416754 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552582 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:17] /constantinoff/res/root/bg/resweb/num.html?_=1681304416755 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552583 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:23] /constantinoff/res/root/bg/resweb/num.html?_=1681304416756 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552584 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:29] /constantinoff/res/root/bg/resweb/num.html?_=1681304416757 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552585 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:35] /constantinoff/res/root/bg/resweb/num.html?_=1681304416758 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552586 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:41] /constantinoff/res/root/bg/resweb/num.html?_=1681304416759 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552587 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:47] /constantinoff/res/root/bg/resweb/num.html?_=1681304416760 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552588 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:52] /constantinoff/res/root/bg/resweb/form/812979.html 167.99.142.201

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

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812979'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-19' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:30:00' AND '17:30:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

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

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

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 16:08:52] /constantinoff/res/root/bg/resweb/num.html?_=1681304937143 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552589 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:08:58] /constantinoff/res/root/bg/resweb/num.html?_=1681304937144 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552590 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:04] /constantinoff/res/root/bg/resweb/num.html?_=1681304937145 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552591 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:10] /constantinoff/res/root/bg/resweb/num.html?_=1681304937146 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552592 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:16] /constantinoff/res/root/bg/resweb/num.html?_=1681304937147 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552593 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:22] /constantinoff/res/root/bg/resweb/num.html?_=1681304937148 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552594 167.99.142.201

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

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

set names utf8
# [12-Apr-2023 16:09:28] /constantinoff/res/root/bg/resweb/num.html?_=1681304937149 167.99.142.201

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

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552595 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:33] /constantinoff/res/root/bg/resweb/form/812979.html 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
                *
            FROM
                `constantinoff`.`reservations`
            WHERE
                `ID` = '812979'
            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
                `Visible` = 1
            ORDER BY `halls`.`ItemPosition` 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` = '2023-04-19' AND  /* ZA POSOCHENATA DATA */
                 `reservations`.`ResTime` BETWEEN '09:30:00' AND '17:30:00' /* 4 CHASA NAPRED OT POSOCHENIQ  */

SELECT
                    *
                FROM
                    `tables`
                WHERE
                    `HallID` = '6' AND
                    `Visible` = 1
                ORDER BY
                    `Row` ASC,
                    `Col` ASC

SELECT
                MAX(`Row`) AS MaxRow,
                MAX(`Col`) AS MaxCol
            FROM
                `tables`
            WHERE
                `HallID` = '6'
                AND `Visible` = 1

SELECT
                `Background`
            FROM
                `halls`
            WHERE
                `ID` = '6'
                AND `Visible` = 1
            LIMIT 1

set names utf8
# [12-Apr-2023 16:09:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978316 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552596 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978317 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552597 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978318 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552598 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978319 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552599 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:09:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978320 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552600 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978321 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552601 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978322 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552602 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978323 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552603 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978324 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552604 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978325 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552605 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978326 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552606 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978327 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552607 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978328 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552608 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978329 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552609 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:10:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978330 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552610 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978331 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552611 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978332 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552612 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978333 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552613 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978334 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552614 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978335 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552615 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978336 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552616 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978337 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552617 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978338 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552618 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978339 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552619 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:11:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978340 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552620 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978341 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552621 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978342 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552622 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978343 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552623 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978344 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552624 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978345 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552625 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978346 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552626 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978347 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552627 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978348 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552628 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978349 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552629 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:12:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978350 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552630 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978351 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552631 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978352 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552632 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978353 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552633 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978354 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552634 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978355 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552635 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978356 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552636 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978357 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552637 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978358 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552638 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978359 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552639 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:13:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978360 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552640 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978361 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552641 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978362 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552642 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978363 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552643 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978364 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552644 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978365 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552645 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978366 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552646 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978367 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552647 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978368 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552648 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978369 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552649 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:14:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978370 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552650 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978371 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552651 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978372 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552652 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978373 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552653 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:21] /constantinoff/res/root/bg/resweb/num.html?_=1681304978374 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:24] /constantinoff/res/root/bg/resweb/num.html?_=1681300552654 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:27] /constantinoff/res/root/bg/resweb/num.html?_=1681304978375 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:30] /constantinoff/res/root/bg/resweb/num.html?_=1681300552655 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:33] /constantinoff/res/root/bg/resweb/num.html?_=1681304978376 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:36] /constantinoff/res/root/bg/resweb/num.html?_=1681300552656 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:39] /constantinoff/res/root/bg/resweb/num.html?_=1681304978377 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:42] /constantinoff/res/root/bg/resweb/num.html?_=1681300552657 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:45] /constantinoff/res/root/bg/resweb/num.html?_=1681304978378 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:48] /constantinoff/res/root/bg/resweb/num.html?_=1681300552658 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:51] /constantinoff/res/root/bg/resweb/num.html?_=1681304978379 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:54] /constantinoff/res/root/bg/resweb/num.html?_=1681300552659 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:15:57] /constantinoff/res/root/bg/resweb/num.html?_=1681304978380 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:00] /constantinoff/res/root/bg/resweb/num.html?_=1681300552660 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:03] /constantinoff/res/root/bg/resweb/num.html?_=1681304978381 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:06] /constantinoff/res/root/bg/resweb/num.html?_=1681300552661 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:09] /constantinoff/res/root/bg/resweb/num.html?_=1681304978382 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:12] /constantinoff/res/root/bg/resweb/num.html?_=1681300552662 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:15] /constantinoff/res/root/bg/resweb/num.html?_=1681304978383 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

SELECT
            COUNT(`ID`) AS `NUM`
         FROM
            `constantinoff`.`reservations`
         WHERE
            CONCAT(`ResDate`, ' ', `ResTime`) > NOW() AND
            `Status` = 0

set names utf8
# [12-Apr-2023 16:16:18] /constantinoff/res/root/bg/resweb/num.html?_=1681300552663 167.99.142.201

SELECT
                                    `ID`,
                                    `Data`
                                FROM
                                    `constantinoff`.`staff`
                                WHERE
                                    `ID` = '4' AND
                                    `Visible` = 1
                                LIMIT 1

