$db->query("SELECT * FROM " . PREFIX . "_games
WHERE
NOT gligue_id = '438'
AND (
game_date = '".date("Y-m-d", time())."'
OR
(game_date = '".date("Y-m-d", strtotime('-1 days'))."'
AND game_status = 2)
)")
Данный запрос выводит записи сегодняшней даты,фигасе вмутили выборку сегодняшней даты...
$db->query("
SELECT COUNT(*) as count
FROM " . PREFIX . "_games
WHERE (
gligue_id != '438'
AND date(game_date) = date( now())
)
or
(
date(game_date) = date( now() - INTERVAL 1 DAY)
AND game_status = 2
)
");