# [10-Sep-2023 22:46:00] /eventssp8/root/sp8DrnsAWf/bg/orders/list.html 108.61.209.243

set names utf8

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

SELECT * FROM `orders` WHERE `Status` & 8 ORDER BY `ID` DESC LIMIT 0, 100

SELECT COUNT(*) AS NumRows FROM (SELECT * FROM `orders` WHERE `Status` & 8 ORDER BY `ID` DESC) AS CountTable
