SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_id AS images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    2773, 2775, 2768, 2767, 3833, 2562, 2563, 
    3548, 3549, 5151, 5153, 2786, 2787, 
    5129, 5126, 5135, 5133, 8703, 8704, 
    8705, 8706, 7873, 7875, 7876, 7871, 
    7872
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00219

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "64.56"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "27.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 27,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (2773,2775,2768,2767,3833,2562,2563,3548,3549,5151,5153,2786,2787,5129,5126,5135,5133,8703,8704,8705,8706,7873,7875,7876,7871,7872)))",
            "cost_info": {
              "read_cost": "15.96",
              "eval_cost": "2.70",
              "prefix_cost": "18.66",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "28.11",
              "data_read_per_join": "20K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent",
              "cp_in_opt_list"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "108",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "37.56",
              "data_read_per_join": "16K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res transparent cp_in_opt_list pair_id object_id object_type detailed_id type position alt images_image_id
0 Delivard_Product_Images__28_.jpg 600 600 N N Y 16561 2767 product 12436 M 0 12436
0 4xsZLObBF9r87xr0oitpr9wYQMrkHNNsRA4MLZrp.jpg 800 800 N N Y 16563 2768 product 12437 M 0 12437
0 Delivard_Product_Images__29_.jpg 600 600 N N Y 16611 2786 product 12484 M 0 12484
0 AOeKBFlupyGyZuY7pZU339xEwyJBGh21cYwe89Rq.jpg 800 800 N N Y 16613 2787 product 12485 M 0 12485
0 Untitled_design__63__6yl0-x6.jpg 600 600 N N Y 18830 3548 product 14291 M 0 14291
0 cz0alhjIQmvJz7gdc3hAR4VEVooIUBVH3KCmSWCO.jpg 800 800 N N Y 18832 3549 product 14292 M 0 14292
0 Untitled_design_-_2025-08-04T155407.140.jpg 600 600 N N Y 19349 2773 product 14754 M 0 14754
0 Untitled_design_-_2025-08-04T155351.903_8dqo-qj.jpg 600 600 N N Y 19354 2775 product 14759 M 0 14759
0 Untitled_design_-_2025-08-06T150330.066.jpg 600 600 N N Y 19907 2562 product 15148 M 0 15148
0 Untitled_design_-_2025-08-06T170203.741.jpg 600 600 N N Y 19916 3833 product 15152 M 0 15152
0 Untitled_design_-_2025-08-06T150308.993_zea7-ua.jpg 600 600 N N Y 19919 2563 product 15154 M 0 15154
0 BLM91_cpv0-4x.jpg 900 900 N N Y 33948 7871 product 25632 M 0 25632
0 BLM91_rgwb-7w.jpg 900 900 N N Y 33952 7872 product 25634 M 0 25634
0 BLM91_oad2-oy.jpg 900 900 N N Y 33954 7873 product 25636 M 0 25636
0 White.jpg 900 900 N N Y 36694 8703 product 28106 M 0 28106
0 BLM91_xpl6-yz.jpg 900 900 N N Y 33959 7876 product 25639 M 1 25639
0 Untitled_Image_udc0-z9.jpg 900 900 N N Y 36698 8704 product 28107 M 1 28107
0 Blue.jpg 900 900 N N Y 36699 8705 product 28108 M 1 28108
0 Pink.jpg 900 900 N N Y 36700 8706 product 28109 M 1 28109
0 Delivard_Template_d8ur-xt.jpg 900 900 N N Y 24930 5126 product 18789 M 2 18789
0 BLM91_y4g1-2f.jpg 900 900 N N Y 33962 7875 product 25641 M 2 25641
0 Delivard_Template_nzd6-ma.jpg 900 900 N N Y 25003 5153 product 18847 M 5 18847
0 Delivard_Template_mqbb-xd.jpg 900 900 N N Y 24940 5129 product 18794 M 7 18794
0 Delivard_Template_3viy-1v.jpg 900 900 N N Y 24956 5133 product 18810 M 12 18810
0 Delivard_Template_g62e-35.jpg 900 900 N N Y 24966 5135 product 18815 M 17 18815
0 Delivard_Template_swbl-iz.jpg 900 900 N N Y 24993 5151 product 18842 M 17 18842