SELECT * FROM cms_module_banners WHERE (category_id = "40") AND (expires > '2021-09-27 05:11: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 = "41") AND (expires > '2021-09-27 05:11: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 = "42") AND (expires > '2021-09-27 05:11: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 = "43") AND (expires > '2021-09-27 05:11:26' or isnull(expires)) AND (max_impressions = 0 OR num_impressions < max_impressions) ORDER BY RAND() LIMIT 0,1


© Copyright Thomas PONS pour PSM-CAFE
Site propulsé par CMS Made Simple