Database Query Error:

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db_453689_1.mybo_stations_stat.time' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

for query

SELECT time, AVG(signalsh) sig, AVG(strikesh) astr, MAX(strikesh) mstr, COUNT(time) / COUNT(DISTINCT time) cnt
					FROM mybo_stations_stat
					WHERE time BETWEEN '2025-11-28 09:16:54' AND '2022-07-03 00:15:41' AND  station_id  = 0  
					GROUP BY TO_DAYS(time), HOUR(time), FLOOR(MINUTE(time) / 15)