fixed sql typo