fixing bad quote in sql