Fixing broken SQL queries
Found more queries with typos due to bad copy-pasting.