SELECT @columns, COUNT(*) FROM $table GROUP BY @columns HAVING COUNT(*) > 1