SELECT
COUNT(DISTINCT `offer`) AS `cnt`,
CONCAT(`webmaster`, '|', `partner`) as `webmaster_partner`
FROM `orders`
GROUP BY `webmaster_partner`
HAVING `cnt` > 1
#3 - Error writing file '/tmp/MYjjXoaV' (Errcode: 28)
SELECT
COUNT(DISTINCT `offer`) AS `cnt`,
`webmaster`, `partner`
FROM `orders`
GROUP BY `webmaster`, `partner`
HAVING `cnt` > 1
SELECT `partner`, COUNT(1) as `count` FROM `table` GROUP BY `parthner` HAVING count>1