Expression #13 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fotoo_prod.i.id' 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,g.name as galleryname,g.create_date, count(distinct i.id) 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.id,i.name,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 c.img_id=i.id WHERE i.deleted=0 AND i.id!=0 AND g.status!=0 and g.category_id="7" GROUP BY g.gallery_id ORDER BY totals DESC LIMIT 0,25


Szukaj Galerii:
Strona Główna::Uroda i moda
Uroda i moda
32 galleries
Nazwa Galerii Zdjęć Wykorzystana przestrzeń Odsłon Komentarzy Właściciel Flash