Fix typo in SQL queries.