code: def query_cat_recent_with_label(cat_id, label=None, num=8, kind='1', order=False):
          '''
          query_cat_recent_with_label
          '''
          if order:
              sort_criteria = TabPost.order.asc()
          else:
              sort_criteria = TabPost.time_create.desc()
  
          return TabPost.select().join(
              TabPost2Tag,
              on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost.kind == kind) &
              (TabPost2Tag.tag_id == cat_id) &
              (TabPost.extinfo['def_tag_arr'].contains(label))
          ).order_by(
              sort_criteria
          ).limit(numf query_cat_recent_with_label(cat_id, label=None, num=8, kind='1', order=False):
          '''
          query_cat_recent_with_label
          '''
          if order:
              sort_criteria = TabPost.order.asc()
          else:
              sort_criteria = TabPost.time_create.desc()
  
          return TabPost.select().join(
              TabPost2Tag,
              on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost.kind == kind) &
              (TabPost2Tag.tag_id == cat_id) &
              (TabPost.extinfo['def_tag_arr'].contains(label))
          ).order_by(
              sort_criteria
          ).limit(num)
docs: query_cat_recent_with_label