Kentucky *Ship Stores New Marine Supplies - New Boats /Trailers/ inflatables
SELECT a.*, UNIX_TIMESTAMP(a.createdon) AS timestamp, ct.cityname, COUNT(*) AS piccount, p.picfile, scat.subcatname, cat.catid, cat.catname , axf.f1, axf.f2, axf.f3, axf.f4, axf.f5 FROM phpclassifieds_ads a INNER JOIN phpclassifieds_cities ct ON a.cityid = ct.cityid INNER JOIN phpclassifieds_subcats scat ON a.subcatid = scat.subcatid INNER JOIN phpclassifieds_cats cat ON scat.catid = cat.catid LEFT OUTER JOIN phpclassifieds_adxfields axf ON a.adid = axf.adid LEFT OUTER JOIN phpclassifieds_adpics p ON a.adid = p.adid AND p.isevent = '0' LEFT OUTER JOIN phpclassifieds_featured feat ON a.adid = feat.adid AND feat.adtype = 'A' WHERE a.subcatid = 142 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 ct.countryid = 30 GROUP BY a.adid ORDER BY a.createdon DESC LIMIT 0, 50Expression #29 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'boatsand_shore.p.picfile' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by