fix typo in sql