fixed sql copy and paste error