Ücretsiz, üyeliksiz tüm Türkiye'ye ilan vermek için tıklayınız.
Sponsor Linkler
Son İlanlar
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 ct ON a.cityid = ct.cityid
INNER JOIN xzclf_subcats scat ON a.subcatid = scat.subcatid
INNER JOIN xzclf_cats 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 ct.countryid = 1
GROUP BY a.adid
ORDER BY a.createdon DESC
LIMIT 20Expression #25 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hurilan_ilan.p.picfile' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by |
|