SELECT * FROM cms_module_banners WHERE (category_id = "49") AND (expires > '2024-04-25 01:54:26' or isnull(expires))
AND (max_impressions = 0 OR num_impressions < max_impressions) ORDER BY RAND() LIMIT 0,1
SELECT * FROM cms_module_banners WHERE (category_id = "67") AND (expires > '2024-04-25 01:54:26' or isnull(expires))
AND (max_impressions = 0 OR num_impressions < max_impressions) ORDER BY RAND() LIMIT 0,1