Fix issue with corrupt SQL statement due to removal of parentheses.