Our Programmes:

SELECT * FROM `bss_events` e
                    WHERE `programId`='0' AND `activeUntil` > '2020-10-31 09:43:35' AND (`lastId`<`limit` OR `limit`=-1) AND `settings` NOT LIKE '%_ministry%' AND e.`activeUntil`>='2020-10-31 09:43:35'  ORDER BY `order` ASC

我们的活动:

SELECT * FROM `bss_events` e
                    WHERE `programId`='0' AND `activeUntil` > '2020-10-31 09:43:35' AND (`lastId`<`limit` OR `limit`=-1) AND `settings` LIKE '%chinese_ministry%' AND e.`activeUntil`>='2020-10-31 09:43:35'  ORDER BY `order` ASC