SELECT 'x' FROM b_agent WHERE ACTIVE = 'Y' AND NEXT_EXEC <= now() AND (DATE_CHECK IS NULL OR DATE_CHECK <= now()) LIMIT 1
DB query error.
Please try later.