typo in sqlite query