[BUGFIX] Fix SQL error on recursive TypoScript template inclusion