mistake corrected in sql statement