Fixed issue #2288 about INSERT ... FROM SELECT