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 (
    414502, 414504, 431672, 431673, 431674, 
    431675, 431676, 396068, 396069, 396070, 
    396071, 396072, 396073, 414480, 414481, 
    414482, 414483, 414484, 432460, 432472, 
    432475, 432478, 432481, 432484, 432487, 
    432490, 432493, 432462, 432463, 432541, 
    432542, 432547, 432550, 432543, 432544, 
    432589, 432590, 432595, 432593, 432594, 
    432449, 432515, 432518, 432521, 432522, 
    432642, 432645, 432643, 432644, 432668, 
    432669, 432670, 432671, 432523, 432419, 
    432524, 432652, 432660, 432661, 432662, 
    432688, 432689, 432694, 432695
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00382

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "371.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "64.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": 64,
            "rows_produced_per_join": 64,
            "filtered": "100.00",
            "index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (414502,414504,431672,431673,431674,431675,431676,396068,396069,396070,396071,396072,396073,414480,414481,414482,414483,414484,432460,432472,432475,432478,432481,432484,432487,432490,432493,432462,432463,432541,432542,432547,432550,432543,432544,432589,432590,432595,432593,432594,432449,432515,432518,432521,432522,432642,432645,432643,432644,432668,432669,432670,432671,432523,432419,432524,432652,432660,432661,432662,432688,432689,432694,432695)))",
            "cost_info": {
              "read_cost": "140.81",
              "eval_cost": "12.80",
              "prefix_cost": "153.61",
              "data_read_per_join": "6K"
            },
            "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": [
              "webmarco.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 64,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "64.00",
              "eval_cost": "12.80",
              "prefix_cost": "230.41",
              "data_read_per_join": "49K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": [
              "webmarco.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 64,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "64.00",
              "eval_cost": "12.80",
              "prefix_cost": "307.21",
              "data_read_per_join": "38K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649538 396068 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649539 396069 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649540 396070 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649541 396071 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649542 396072 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649543 396073 product 1361708 M 0 1361708
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782058 414480 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782059 414481 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782060 414482 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782061 414483 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782062 414484 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T183633.598.png 600 600 N 3782080 414502 product 1492679 M 0 1492679
0 Untitled_design_-_2023-05-01T183633.598.png 600 600 N 3782086 414504 product 1492679 M 0 1492679
0 produts_img_600__19_.png 600 600 N 3871450 431672 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871451 431673 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871452 431674 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871453 431675 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871454 431676 product 1543494 M 0 1543494
0 Untitled_design__20_.png 600 600 N 3872973 432419 product 1543970 M 0 1543970
0 Untitled_design__22_.png 600 600 N 3873036 432449 product 1543973 M 0 1543973
0 Untitled_design__23_.png 600 600 N 3873065 432460 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873069 432462 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873070 432463 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873095 432472 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873098 432475 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873101 432478 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873104 432481 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873107 432484 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873110 432487 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873113 432490 product 1543978 M 0 1543978
0 Untitled_design__23_.png 600 600 N 3873116 432493 product 1543978 M 0 1543978
0 Untitled_design__22_.png 600 600 N 3873169 432515 product 1543973 M 0 1543973
0 Untitled_design__22_.png 600 600 N 3873172 432518 product 1543973 M 0 1543973
0 Untitled_design__22_.png 600 600 N 3873175 432521 product 1543973 M 0 1543973
0 Untitled_design__22_.png 600 600 N 3873176 432522 product 1543973 M 0 1543973
0 Untitled_design__20_.png 600 600 N 3873177 432523 product 1543970 M 0 1543970
0 Untitled_design__20_.png 600 600 N 3873178 432524 product 1543970 M 0 1543970
0 Untitled_design__26_.png 600 600 N 3873200 432541 product 1543991 M 0 1543991
0 Untitled_design__33_.png 600 600 N 3873316 432589 product 1544022 M 0 1544022
0 Untitled_design__32_.png 600 600 N 3873317 432590 product 1544021 M 0 1544021
0 Untitled_design__33_.png 600 600 N 3873328 432593 product 1544022 M 0 1544022
0 Untitled_design__33_.png 600 600 N 3873329 432594 product 1544022 M 0 1544022
0 Untitled_design__31_.png 600 600 N 3873338 432595 product 1544020 M 0 1544020
0 Untitled_design__38_.png 600 600 N 3873496 432642 product 1544030 M 0 1544030
0 Untitled_design__38_.png 600 600 N 3873503 432643 product 1544030 M 0 1544030
0 Untitled_design__38_.png 600 600 N 3873504 432644 product 1544030 M 0 1544030
0 Untitled_design__38_.png 600 600 N 3873505 432645 product 1544030 M 0 1544030
0 Untitled_design__40__21st-6m.png 600 600 N 3873511 432542 product 1544035 M 0 1544035
0 Untitled_design__40__myed-rj.png 600 600 N 3873514 432543 product 1544038 M 0 1544038
0 Untitled_design__40__8q9j-qu.png 600 600 N 3873517 432544 product 1544041 M 0 1544041
0 Untitled_design__39__hj4x-zw.png 600 600 N 3873522 432547 product 1544046 M 0 1544046
0 Untitled_design__41__i95o-vg.png 600 600 N 3873529 432550 product 1544053 M 0 1544053
0 Untitled_design__44_.png 600 600 N 3873548 432652 product 1544069 M 0 1544069
0 Untitled_design__44_.png 600 600 N 3873568 432660 product 1544069 M 0 1544069
0 Untitled_design__44_.png 600 600 N 3873569 432661 product 1544069 M 0 1544069
0 Untitled_design__44_.png 600 600 N 3873570 432662 product 1544069 M 0 1544069
0 Untitled_design__45__d4h4-nq.png 600 600 N 3873581 432668 product 1544082 M 0 1544082
0 Untitled_design__45__d4h4-nq.png 600 600 N 3873582 432669 product 1544082 M 0 1544082
0 Untitled_design__45__d4h4-nq.png 600 600 N 3873583 432670 product 1544082 M 0 1544082
0 Untitled_design__45__d4h4-nq.png 600 600 N 3873584 432671 product 1544082 M 0 1544082
0 Untitled_design__48_.png 600 600 N 3873613 432688 product 1544091 M 0 1544091
0 Untitled_design__48_.png 600 600 N 3873614 432689 product 1544091 M 0 1544091
0 Untitled_design__49_.png 600 600 N 3873623 432694 product 1544094 M 0 1544094
0 Untitled_design__49_.png 600 600 N 3873624 432695 product 1544094 M 0 1544094