|
SELECT COUNT(*) AS adcount
FROM xzclf_events a
INNER JOIN xzclf_cities ct ON a.cityid = ct.cityid
LEFT OUTER JOIN xzclf_featured feat ON a.adid = feat.adid AND feat.adtype = 'E'
WHERE (starton <= '2010-08-15' AND endon >= '2010-08-15')
AND a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW()
AND (feat.adid IS NULL OR feat.featuredtill < NOW())
AND ct.countryid = 0Table './ahaindia_ads/xzclf_events' is marked as crashed and should be repaired |
|