| |||||
|
Categories »
Lost connection to MySQL server during querySELECT scat.subcatid, scat.catid, COUNT(*) as adcnt
FROM classifieds_ads a
INNER JOIN classifieds_subcats scat ON scat.subcatid = a.subcatid AND (a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW() AND a.paid <> '0')
INNER JOIN classifieds_cats cat ON cat.catid = scat.catid
INNER JOIN classifieds_cities ct ON a.cityid = ct.cityid
WHERE scat.enabled = '1'
AND ct.countryid = 1
GROUP BY a.subcatid
| ||||