Error: SELECT p.*, t2k.tagId FROM products p, tags2models t2k WHERE p.id = t2k.foreignKey AND(t2k.tagId = 11708 OR t2k.tagId = 11709 OR t2k.tagId = 11710 OR t2k.tagId = 11711 OR t2k.tagId = 11712 OR t2k.tagId = 11713) AND t2k.model = 'products' AND t2k.foreignKey != '2159' 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