Fixes #11773 when using includes combined with select, the select statement was overwritten.
Merge pull request #11791 from versioncontrol/includes_with_persistent_select

Includes with persistent select, fixes #11773