Set Up on Child Pages Error

Permalink
I'm not sure what happened because I had been setting up stacks and adding them and blocks to page types and everything was working fine. Then I started getting this error when I tried to add a stack to a custom page type and now I get the error when I set up anything on any page type.

mysql error: [1052: Column 'ctID' in where clause is ambiguous] in EXECUTE("select Pages.cID, Collections.cDateAdded, Collections.cDateModified, max(cvID) as cvID, cvName from Pages inner join Collections on Collections.cID = Pages.cID inner join (select * from CollectionVersions order by cvID desc) as Foo on Pages.cID = Foo.cID where ctID = '7' and cIsTemplate = 0 group by Foo.cID order by cvName asc;")

Did I set the custom page up wrong? Thanks for your help.

sogren