fixing sql typo