Fix DISTINCT clause. DISTINCT cannot be surrounded a pair of parenthesis.