Fixed typo in sql statement
Removed numrows as it does not work