[IC] fixed sql