All objections to an indictment for any defect dehors the face thereof, presenting an issue to be tried by the court, shall be taken by motion to quash the indictment, and not otherwise, within the time allowed for demurrer, and with the right to amend, as provided in the last preceding section.
Miss. Code § 99-7-23