silverstripe/silverstripe-blog — pull request #34 by jaredkipe (2012-07-11 18:15:26+00:00)
Title: Fixed ambiguous column in filter. (BlogTree.php::Entries())

Fixed ambiguous column in filter. (BlogTree.php::Entries())
Was crashing with the only log out like this
"
PHP Fatal error: Couldn't run query:
SELECT DISTINCT "SiteTree"."ClassName", "SiteTree"."Created", "SiteTree"."LastEdited", "SiteTree"."ProvideComments", "SiteTree"."URLSegment", "SiteTree"."Title", "SiteTree"."MenuTitle", "SiteTree"."Content", "SiteTree"."MetaTitle", "SiteTree"."MetaDescription", "SiteTree"."MetaKeywords", "SiteTree"."ExtraMeta", "SiteTree"."ShowInMenus", "SiteTree"."ShowInSearch", "SiteTree"."Sort", "SiteTree"."HasBrokenFile", "SiteTree"."HasBrokenLink", "SiteTree"."ReportClass", "SiteTree"."CanViewType", "SiteTree"."CanEditType", "SiteTree"."Version", "SiteTree"."ParentID", "Page"."CustomHeadTags", "BlogEntry"."Date", "BlogEntry"."Author", "BlogEntry"."Tags", "SiteTree"."ID", CASE WHEN "SiteTree"."ClassName" IS NOT NULL THEN "SiteTree"."ClassName" ELSE 'SiteTree' END AS "RecordClassName"
FROM "SiteTree"
LEFT JOIN "Page" ON "Page"."ID" = "SiteTree"."ID"
LEFT JOIN "BlogEntry" ON "BlogEntry"."ID" = "SiteTree"."ID"
WHERE ("ParentID" IN (33,30,46,32,39) ) AND ("SiteTree"."ClassName" IN ('BlogEntry'))
ORDER BY in /Git-Sites/jaredkipe/framework/model/MySQLDatabase.php on line 568
"