The people of this State will not sue any person for or in respect to any real property, or the issues or profits thereof, by reason of the right or title of the people to the same, unless:
1. Such right or title shall have accrued within ten years before any action or other proceeding for the same is commenced; or,
2. The people, or those from whom they claim, shall have received the rents and profits of such real property, or of some part thereof, within the space of ten years.
(Enacted 1872.)