added parenthesis in sql syntax