Extra brackets lead to SQL error.
Merge pull request #1099 from seaneble/patch-1

Extra brackets lead to SQL error