fixed typo in sql statement