Query failed: select distinct rgl_links.to_tag as tag,count(rgl_links.from_tag) as count from rgl_links left join rgl_pages on rgl_links.to_tag = rgl_pages.tag where rgl_pages.tag is NULL group by tag order by tag (Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'rusgolib.rgl_links.to_tag' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by)