Добрый день, помогите победить ошибку:
MySQL error in file: W:\eee3.ru\index.php at line 21Expression #4 of SELECT list is not in GROUP BY clause and contains
nonaggregated column 'test.so.idate' which is not functionally
dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
select SQL_CALC_FOUND_ROWS name, ( max(word in ('ен')) + max(word in ('от')) ) as R, sum(weight) as W, idate, id_obj
from search_object as so, search_index as i where so.id = i.id_obj
and word in ('ен', 'от') group by name
order by R desc, W desc, idate desc limit 0, 10
Как более или менее корректно подогнать запрос?