Can't Add A Stack

Permalink 1 user found helpful
When I try to add a stack I get this error:

mysql 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")

Can anyone help me out on this error?
Thanks,
Ryan