code: def query_cat_recent(cat_id, label=None, num=8, kind='1', order=False):
          '''
          Query recent posts of catalog.
          '''
  
          if label:
              recent_recs = MPost.query_cat_recent_with_label(
                  cat_id,
                  label=label,
                  num=num,
                  kind=kind,
                  order=order
              )
          else:
              recent_recs = MPost.query_cat_recent_no_label(
                  cat_id,
                  num=num,
                  kind=kind,
                  order=order
              )
          return recent_recf query_cat_recent(cat_id, label=None, num=8, kind='1', order=False):
          '''
          Query recent posts of catalog.
          '''
  
          if label:
              recent_recs = MPost.query_cat_recent_with_label(
                  cat_id,
                  label=label,
                  num=num,
                  kind=kind,
                  order=order
              )
          else:
              recent_recs = MPost.query_cat_recent_no_label(
                  cat_id,
                  num=num,
                  kind=kind,
                  order=order
              )
          return recent_recs
docs: Query recent posts of catalog.