fixed sql error?