fixed a typo in a sql query.