php error happened

Technical information
Error type256
Error descriptionExpression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sprecac_stanje2.spr_stanje.vodostaj' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Error file/home4/sprecac/public_html/stanje/connections/Connection.php
Error line661
SQL querySELECT `datum` as `Datum`, `vodostaj` as `Vodostaj`, `ispust` as `Ispust`, `padavine` as `Padavine`, `vrijeme` as `vrijeme` FROM `spr_stanje` GROUP BY `datum` order by datum ASC, vrijeme DESC limit 0,1

More info