Error: SELECT p.*, t2k.tagId FROM products p, tags2models t2k WHERE p.id = t2k.foreignKey AND(t2k.tagId = 10777 OR t2k.tagId = 10778 OR t2k.tagId = 10779 OR t2k.tagId = 10780 OR t2k.tagId = 10781) AND t2k.model = 'products' AND t2k.foreignKey != '3003' GROUP BY p.id

Expression #49 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'abfanava_db.t2k.tagId' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by