Home / Events
SELECT a.*, COUNT(*) AS piccount, p.picfile, UNIX_TIMESTAMP(a.createdon) AS timestamp, ct.cityname, UNIX_TIMESTAMP(a.starton) AS starton, UNIX_TIMESTAMP(a.endon) AS endon, urg.adid AS isurgent, red.adid AS isreduced, sold.adid AS issold FROM clf_events a INNER JOIN clf_cities ct ON a.cityid = ct.cityid LEFT OUTER JOIN clf_adpics p ON a.adid = p.adid AND p.isevent = '1' LEFT OUTER JOIN clf_featured feat ON a.adid = feat.adid AND feat.adtype = 'E' LEFT OUTER JOIN clf_urgent urg ON a.adid = urg.adid AND urg.adtype = 'E' AND urg.urgenttill > NOW() LEFT OUTER JOIN clf_reduced red ON a.adid = red.adid AND red.adtype = 'E' AND red.reducedtill > NOW() LEFT OUTER JOIN clf_sold sold ON a.adid = sold.adid AND sold.adtype = 'E' WHERE (starton <= '2018-07-12' AND endon >= '2018-07-12') 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()) GROUP BY a.adid ORDER BY a.starton DESC LIMIT 0, 50Expression #27 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