Fixed typo in sql statement