Any person affected by an order, decision, or award of the appeals board may, within the time limit specified in this section, apply to the Supreme Court or to the court of appeal for the appellate district in which he resides, for a writ of review, for the purpose of inquiring into and determining the lawfulness of the original order, decision, or award or of the order, decision, or award following reconsideration. The application for writ of review must be made within 45 days after a petition for reconsideration is denied, or, if a petition is granted or reconsideration is had on the appeal board’s own motion, within 45 days after the filing of the order, decision, or award following reconsideration.