SELECT 
  cv.video_id, 
  cvd.video, 
  cvd.description, 
  cvd.short_description, 
  cvd.like_count, 
  cvd.comment_count, 
  cvd.youtube_id, 
  cv.status, 
  cv.user_id, 
  cv.community_thumbnail, 
  cv.community_video_url, 
  cv.community_url, 
  cu.firstname, 
  CASE WHEN MAX(mum.avatar) IS NOT NULL 
  AND MAX(mum.avatar) != '' THEN CONCAT(
    'https://cdn.kindlife.in/', 
    MAX(mum.avatar)
  ) ELSE 'https://cdn.kindlife.in/images/ui_icon/user-default.svg' END AS userAvatar 
FROM 
  cscart_cp_videos cv 
  LEFT JOIN cscart_cp_video_descriptions cvd ON cvd.video_id = cv.video_id 
  AND cvd.lang_code = 'en' 
  LEFT JOIN cscart_users cu ON cu.user_id = cv.user_id 
  LEFT JOIN kl_user_pref_master mum ON cv.user_id = mum.user_id 
WHERE 
  1 
  AND cv.video_id IN (413, 1089, 1335, 1380) 
  AND cv.status = 'A' 
GROUP BY 
  cv.video_id, 
  cvd.video, 
  cvd.description, 
  cvd.short_description, 
  cvd.like_count, 
  cvd.comment_count, 
  cv.status, 
  cv.user_id, 
  cv.community_thumbnail, 
  cv.community_video_url, 
  cu.firstname 
ORDER BY 
  FIELD(cv.video_id, 413, 1089, 1335, 1380) 
LIMIT 
  0, 5

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "8.59"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "cv",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY",
                "status_idx",
                "video_id_idx",
                "idx_cp_videos_status_userid_videoid",
                "idx_status_timestamp"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "video_id"
              ],
              "key_length": "3",
              "rows_examined_per_scan": 4,
              "rows_produced_per_join": 2,
              "filtered": "57.48",
              "index_condition": "(`cscart_db`.`cv`.`video_id` in (413,1089,1335,1380))",
              "cost_info": {
                "read_cost": "2.58",
                "eval_cost": "0.23",
                "prefix_cost": "2.81",
                "data_read_per_join": "3K"
              },
              "used_columns": [
                "video_id",
                "status",
                "user_id",
                "community_url",
                "community_thumbnail",
                "community_video_url"
              ],
              "attached_condition": "(`cscart_db`.`cv`.`status` = 'A')"
            }
          },
          {
            "table": {
              "table_name": "cvd",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "video_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "cscart_db.cv.video_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.57",
                "eval_cost": "0.23",
                "prefix_cost": "3.61",
                "data_read_per_join": "9K"
              },
              "used_columns": [
                "video_id",
                "lang_code",
                "youtube_id",
                "video",
                "description",
                "short_description",
                "like_count",
                "comment_count"
              ]
            }
          },
          {
            "table": {
              "table_name": "cu",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "user_id"
              ],
              "key_length": "3",
              "ref": [
                "cscart_db.cv.user_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.25",
                "eval_cost": "0.23",
                "prefix_cost": "6.09",
                "data_read_per_join": "15K"
              },
              "used_columns": [
                "user_id",
                "firstname"
              ],
              "attached_condition": "<if>(is_not_null_compl(cu), (`cscart_db`.`cu`.`user_id` = `cscart_db`.`cv`.`user_id`), true)"
            }
          },
          {
            "table": {
              "table_name": "mum",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "user_id"
              ],
              "key_length": "3",
              "ref": [
                "cscart_db.cv.user_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.27",
                "eval_cost": "0.23",
                "prefix_cost": "8.59",
                "data_read_per_join": "42K"
              },
              "used_columns": [
                "user_id",
                "avatar"
              ],
              "attached_condition": "<if>(is_not_null_compl(mum), (`cscart_db`.`cv`.`user_id` = `cscart_db`.`mum`.`user_id`), true)"
            }
          }
        ]
      }
    }
  }
}

Result

video_id video description short_description like_count comment_count youtube_id status user_id community_thumbnail community_video_url community_url firstname userAvatar
1089 Achieve glass skin with simple k-beauty routine. 3 0 A 223511 https://cdn.kindlife.in/images/videos/thumb/1205/466f514f808bcdea152428b568894ad9.jpg https://cdn.kindlife.in/images/videos/thumb/1205/64e4c424e60ecd0335f9685091b0d6c2.mp4 https://www.kindlife.in/3-step-k-beauty-routine.-beginner-friendly Rudrakshi https://cdn.kindlife.in/images/kl_album/223511/2024/07/09/668cdaea49d17phptIlfnz.jpeg
1335 Dry Skin SOS! Hydrating PM routine <p>Struggling with dry, flaky skin? This video features a complete skincare routine from The Face Shop, specifically designed to quench your skin's thirst and leave it feeling plump and hydrated! </p> <p> 3 key products:</p> <ol><li>Rice Water Bright Foaming Cleanser: This gentle cleanser removes impurities without stripping your skin's natural oils, perfect for dry skin.</li><li>Rice & Ceramide Moisturizing Emulsion: This lightweight emulsion delivers a surge of hydration with Rice Extract and Ceramides, helping to strengthen your skin's barrier and prevent moisture loss.</li><li>Therapy Vegan Sun Serum: This innovative sunscreen combines SPF protection with vegan-derived Hyaluronic Acid to keep your skin hydrated and protected all day long.</li></ol> <p>Try this routine and say BYE BYE to dry-flaky skin.</p> 1 0 A 21551 https://www.kindlife.in/images/video_library/1335_the face shop_preview.jpg https://www.kindlife.in/images/video_library/1335_the face shop.mp4 https://www.kindlife.in/dry-skin-sos-hydrating-pm-routine kindlife https://cdn.kindlife.in/images/kl_album/21551/2025/08/21/68a709aba0a47php5imtsL.jpeg
1380 Hydrate & Radiate: Summer Skin Saviors <p>Beat the heat with this perfect hydration trio for all dry skin gworlies! Start your day with the Rice Water Foaming Bright Cleanser to cleanse and refresh. Follow up with the Rice & Ceramides Moisturizing Emulsion for a silky-smooth layer of hydration. Don't forget to protect your glow with the Vegan Moisturizing Sun Serum. Say hello to plump, hydrated skin even in the hottest weather!</p> 1 0 A 21551 https://www.kindlife.in/images/video_library/1380_SaveInsta.App - 3398068293042161971_preview.jpg https://www.kindlife.in/images/video_library/1380_SaveInsta.App - 3398068293042161971.mp4 https://admin.kindlife.in/hydrate-and-radiate-summer-skin-saviors kindlife https://cdn.kindlife.in/images/kl_album/21551/2025/08/21/68a709aba0a47php5imtsL.jpeg