Newest Ads - |
SELECT a.*, ct.cityname, UNIX_TIMESTAMP(a.createdon) AS timestamp, feat.adid AS isfeat,
COUNT(*) AS piccount, p.picfile AS picfile, scat.subcatname, scat.catid, cat.catname
FROM xzclf_ads a
INNER JOIN xzclf_cities_27 target= ct ON a.cityid = ct.cityid
INNER JOIN xzclf_subcats_27 target= scat ON a.subcatid = scat.subcatid
INNER JOIN xzclf_cats_27 target= cat ON scat.catid = cat.catid
LEFT OUTER JOIN xzclf_featured feat ON a.adid = feat.adid AND feat.adtype = 'A' AND feat.featuredtill >= NOW()
LEFT OUTER JOIN xzclf_adpics p ON a.adid = p.adid AND p.isevent = '0'
WHERE a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW() AND cat.enabled='1' AND cat.webmaster='27 target='
AND ct.countryid = 5
GROUP BY a.adid
ORDER BY a.createdon DESC
LIMIT 10You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= ct ON a.cityid = ct.cityid
INNER JOIN xzclf_su' at line 4
| | |