Fixed: StandardTemplateList() generates invalid SQL (bug#10007).