Fix in sql statement