fixed typo in sql