Fixed typo in sql