Fix extra quote in SQL