1055: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'nsvijet_aa999.r.img' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (SQL: ' select r.naziv, r.img, r.id, if(p.datum_do=0, p.datum_od, p.datum_do) as datum, r.url, r.https from resurs r left join resurs_veza ve on r.id=ve.resurs_id left join resurs_vrsta vr on ve.resurs_vrsta_id=vr.id left join platforma p on ve.platforma_id=p.id where r.tip='i' and r.pocetna='1' group by r.naziv order by vr.sort, vr.id, r.naziv ')