Fixed typo in sql query.