sql statement fix 3