another typo in sql, not sure why related error did not previously appear