Since it was shown that this problem does not depend on using derived tables or views the bug #879864 can be considered as a duplicate of this bug.
Since it was shown that this problem does not depend on using derived tables or views the bug #879864 can be considered as a duplicate of this bug.