Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'auuecom2_boxbanner.com.br.bad_n_months.i_m' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

select bad_n_months.i_m as i,bad_n_months.c_m as c,bad_users.username,bad_users.u1,bad_users.u2,bad_users.u3,bad_users.u4,bad_users.u5,bad_n_ad.ad,bad_n_ad.cats from bad_users,bad_n_months,bad_n_ad where bad_n_ad.accept = '1' AND bad_n_ad.approv = '1' AND bad_n_ad.enabl = '1' AND bad_n_ad.ad != '' AND bad_users.suspended = 0 AND bad_n_ad.size = '1' AND bad_n_months.size = '1' AND bad_users.n = bad_n_months.user AND bad_users.n = bad_n_ad.user AND bad_n_months.m = '9' AND bad_n_months.y = '2020' AND bad_n_months.ad_n = 1 group by bad_users.username order by bad_n_months.i_m desc limit 25