repair typo in sql