Home / Africa / Seychelles / Rentals / Vacation
SELECT a.*, UNIX_TIMESTAMP(a.createdon) AS timestamp, ct.cityname, COUNT(*) AS piccount, p.picfile, urg.adid as isurgent, red.adid AS isreduced,sold.adid as issold, scat.subcatname, cat.catid, cat.catname FROM clf_ads a INNER JOIN clf_cities ct ON a.cityid = ct.cityid INNER JOIN clf_subcats scat ON a.subcatid = scat.subcatid INNER JOIN clf_cats cat ON scat.catid = cat.catid LEFT OUTER JOIN clf_adxfields axf ON a.adid = axf.adid LEFT OUTER JOIN clf_adpics p ON a.adid = p.adid AND p.isevent = '0' LEFT OUTER JOIN clf_featured feat ON a.adid = feat.adid AND feat.adtype = 'A' LEFT OUTER JOIN clf_urgent urg ON a.adid = urg.adid AND urg.adtype = 'A' AND urg.urgenttill > NOW() LEFT OUTER JOIN clf_reduced red ON a.adid = red.adid AND red.adtype = 'A' AND red.reducedtill > NOW() LEFT OUTER JOIN clf_sold sold ON a.adid = sold.adid AND sold.adtype = 'A' WHERE a.subcatid = 160 AND a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW() AND a.paid <> '0' AND (feat.adid IS NULL OR feat.featuredtill < NOW()) AND ( a.cityid = 671 OR (a.multicity_countryid = -1 AND a.multicitytill > NOW()) ) GROUP BY a.adid ORDER BY a.createdon DESC LIMIT 0, 50Expression #36 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'class101_classifriedads.p.picfile' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by