Ошибка DB:
Table 'smmcont_db.bot_telegram_cat' doesn't exist
SELECT c.id, c.date, b.chpu
FROM bot_telegram_cat c
LEFT JOIN brand b ON b.id = c.brand_id
WHERE c.date >
IF (b.day_actual > 0, UNIX_TIMESTAMP() - (b.day_actual * 24 * 3600), 1733935496)
and c.lock = 0 and c.voucher = 0 and c.del_virt = 0 and b.access = 0
ORDER BY c.id DESC