typo in sql fixed