whereIn('RuleID', $ruleIDs) ->where('EndDate IS NULL') ->orderBy('RuleID', 'ASC') ->orderBy('RuleActionID', 'ASC') ->findAll(); } }