1055: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'nsvijet_aa999.r.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (SQL: ' select r.id as resID, if(if(p.datum_do=0, p.datum_od, p.datum_do)>date(now()), 'A', 'Z') as aktivan, r.naziv, r.titula, vr.naziv as status, vr.boja, r.img, r.id, r.spol, r.url, r.https, r.puni_prikaz 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 p.platforma_id = 31 and r.tip='o' and vr.vidi_se='1' group by aktivan, vr.sort, r.naziv order by r.puni_prikaz desc, aktivan, vr.sort, r.naziv ')