sql statement fix 2