found sql_mode=only_full_group_by error in query.I have tried many ways to fix it.changed sql_mode=''
.still I get this error.
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'intranet.a.tagid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by:
I have given the table fields
SELECT a.tagid,b.tagword,a.metric
from nextag_metrics a
LEFT JOIN nextag_words b ON a.tagid=b.id
WHERE b.tagword is not NULL
AND type='filedepot'
OR groupid in (2931,2938,2941)
OR userid in (1)
OR categoryid in (2,3,4,5,6,8,9,10,11)
GROUP BY b.tagword
ORDER BY b.tagword ASC
select @@sql_mode;
say? – Alexey