Expression #13 of SELECT list is not in GROUP BY clause and contains nonaggregated column '' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by SQL=SELECT g.uid,g.gallery_id, as galleryname,g.create_date, count(distinct as imgs,sum(i.size) as totalsize,sum(i.views) as totalviews,count(distinct c.comment_id) as totalcomments, sum(i.views) + count(distinct c.comment_id) as totals, sum(i.ratings) as totalratings,sum(i.votes) as totalvotes, sum(i.ratings)/sum(i.votes) as totalrated,,,i.views,i.height,i.width,i.server_id FROM gallery as g LEFT JOIN images4g as i on i.gallery_id=g.gallery_id LEFT JOIN comments as c on WHERE i.deleted=0 AND!=0 AND g.status!=0 GROUP BY g.gallery_id ORDER BY totals DESC LIMIT 0,30

Najpopularniejsze Galerie