• Portugal
  • You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ct.countryid = 1 GROUP BY a.subcatid' at line 7SELECT scat.subcatid, scat.catid, COUNT(*) as adcnt FROM xzclf_ads a INNER JOIN xzclf_subcats scat ON scat.subcatid = a.subcatid AND (a.enabled = '1' AND a.verified = '1') INNER JOIN xzclf_cats cat ON cat.catid = scat.catid INNER JOIN xzclf_cities ct ON a.cityid = ct.cityid WHERE scat.enabled = '1' AND scat.catid = AND ct.countryid = 1 GROUP BY a.subcatid