Portugal (179) Açores (2) Aveiro (2) Braga (9) Coimbra (7) Faro (24) Leiria (8)Lisboa (93) Porto (24) Santarém (3) Setúbal (2) Vila Real (1) Viseu (4)
  • Portugal
  • Lisboa
  • 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 a.cityid = 15 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 a.cityid = 15 GROUP BY a.subcatid