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 (227, 865, 966) 
  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, 227, 865, 966) 
LIMIT 
  0, 5

Query time 0.00065

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.44"
    },
    "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": 3,
              "rows_produced_per_join": 1,
              "filtered": "57.34",
              "index_condition": "(`cscart_db`.`cv`.`video_id` in (227,865,966))",
              "cost_info": {
                "read_cost": "1.94",
                "eval_cost": "0.17",
                "prefix_cost": "2.11",
                "data_read_per_join": "2K"
              },
              "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": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.43",
                "eval_cost": "0.17",
                "prefix_cost": "2.71",
                "data_read_per_join": "7K"
              },
              "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": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "1.68",
                "eval_cost": "0.17",
                "prefix_cost": "4.57",
                "data_read_per_join": "11K"
              },
              "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": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "1.70",
                "eval_cost": "0.17",
                "prefix_cost": "6.44",
                "data_read_per_join": "32K"
              },
              "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
227 All About Vanilla Vibes <p>Indulge in the heavenly scent of Plum BodyLovin' Vanilla Vibes! The Body Oil nourishes your skin, leaving it silky smooth and irresistibly soft. Complement your routine with the Body Mist, enveloping you in a sweet, long-lasting vanilla fragrance. Embrace the vibes and feel fabulous all day long!</p> 2 0 A 83919 https://cdn.kindlife.in/images/videos/thumb/614/68ff8ddb8a766c933d0929717f908a00.jpg https://cdn.kindlife.in/images/videos/thumb/614/657ab1c1abe6a1ce3d3ca66461c204de.mp4 https://www.kindlife.in/plumbodylovin-vanilla-vibes-range Aditi https://cdn.kindlife.in/images/kl_album/83919/2024/07/04/668657da9d693.jpg
966 Wake Up Your Feet, Nourish Your Body, Refresh Your Senses with Plum <p>Indulge in ultimate body care with Plum BodyLovin' treats! Wake up your feet with the Coffee Wake-a-ccino Foot Cream, infused with invigorating coffee to nourish and soften tired soles. For all-over hydration, the Vanilla Vibes BodyButter offers a rich, creamy texture that leaves your skin velvety smooth and deliciously scented. Top it off with the Vanilla Vibes Body Mist, a light and irresistible fragrance that keeps you smelling sweet all day. Treat yourself to these delightful body care essentials for a pampering experience!</p> 0 0 A 163 https://cdn.kindlife.in/images/videos/thumb/1150/fafd558a794ca33b34c6205ae0734da6.jpg https://cdn.kindlife.in/images/videos/thumb/1150/fafd558a794ca33b34c6205ae0734da6.mp4 https://www.kindlife.in/plum-body-pampering-range Mila https://cdn.kindlife.in/images/ui_icon/user-default.svg