Any number of persons claiming liens may join in the same action, and when separate actions are commenced the court may consolidate them. The court may also allow as a part of the costs the moneys paid for filing and recording the lien, and reasonable attorney's fees in the trial and appellate courts.
NMS § 70-4-9