Fix for SQL typo