fix another sql statement