Cannot create new stack and getting error

Permalink
I cannot create a new stack get this error when I try to make one:
mysqlt error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1] in EXECUTE("select max(cDisplayOrder) from Pages where cParentID = LIMIT 1")

I have not touched my site for almost 2 weeks and now I am getting this error.

I am using the latest concrete5.