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 (
    396006, 396007, 396008, 396009, 396010, 
    396011, 396012, 395983, 395984, 395985, 
    395986, 395987, 395988, 395989, 395990, 
    395991, 395992, 395993, 395994, 395995, 
    414436, 414437, 414438, 414439, 414440, 
    414441, 414408, 414409, 414410, 414411, 
    414412, 414413, 414393, 414394, 414395, 
    414396, 414397, 414398, 414399, 431514, 
    431515, 431518, 431521, 431524, 431527, 
    431532, 431535, 431530, 431531, 396058, 
    396059, 396060, 396061, 396062, 396063, 
    396064, 414329, 414330, 414331, 414332, 
    414333, 414334, 396078, 396079, 396080, 
    396081, 396082, 396083, 396084, 396085
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00220

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "406.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "70.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": 70,
            "rows_produced_per_join": 70,
            "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 (396006,396007,396008,396009,396010,396011,396012,395983,395984,395985,395986,395987,395988,395989,395990,395991,395992,395993,395994,395995,414436,414437,414438,414439,414440,414441,414408,414409,414410,414411,414412,414413,414393,414394,414395,414396,414397,414398,414399,431514,431515,431518,431521,431524,431527,431532,431535,431530,431531,396058,396059,396060,396061,396062,396063,396064,414329,414330,414331,414332,414333,414334,396078,396079,396080,396081,396082,396083,396084,396085)))",
            "cost_info": {
              "read_cost": "154.01",
              "eval_cost": "14.00",
              "prefix_cost": "168.01",
              "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": 70,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "70.00",
              "eval_cost": "14.00",
              "prefix_cost": "252.01",
              "data_read_per_join": "53K"
            },
            "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": 70,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "70.00",
              "eval_cost": "14.00",
              "prefix_cost": "336.01",
              "data_read_per_join": "41K"
            },
            "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-28T114708.861.png 600 600 N 3647935 395983 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T114708.861.png 600 600 N 3648128 395984 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T114708.861.png 600 600 N 3648129 395985 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T114708.861.png 600 600 N 3648130 395986 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T114708.861.png 600 600 N 3648131 395987 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T114708.861.png 600 600 N 3648132 395988 product 1361679 M 0 1361679
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648325 395989 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648326 395990 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648327 395991 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648328 395992 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648329 395993 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648330 395994 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T122806.880.png 600 600 N 3648331 395995 product 1361680 M 0 1361680
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648822 396006 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648837 396007 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648838 396008 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648839 396009 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648840 396010 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648841 396011 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T125406.146.png 600 600 N 3648842 396012 product 1361683 M 0 1361683
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649528 396058 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649529 396059 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649530 396060 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649531 396061 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649532 396062 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649533 396063 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T142316.241.png 600 600 N 3649534 396064 product 1361706 M 0 1361706
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649712 396078 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649746 396079 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649747 396080 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649748 396081 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649749 396082 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649750 396083 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649751 396084 product 1361714 M 0 1361714
0 Untitled_design_-_2023-04-28T145817.109.png 600 600 N 3649752 396085 product 1361714 M 0 1361714
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781743 414329 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781744 414330 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781745 414331 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781746 414332 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781747 414333 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T153457.648.png 600 600 N 3781748 414334 product 1492609 M 0 1492609
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781871 414393 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781893 414394 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781894 414395 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781895 414396 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781896 414397 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781897 414398 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T163705.950.png 600 600 N 3781898 414399 product 1492627 M 0 1492627
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781911 414408 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781912 414409 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781913 414410 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781914 414411 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781915 414412 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T170629.661.png 600 600 N 3781916 414413 product 1492637 M 0 1492637
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781960 414436 product 1492645 M 0 1492645
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781979 414437 product 1492645 M 0 1492645
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781980 414438 product 1492645 M 0 1492645
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781981 414439 product 1492645 M 0 1492645
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781982 414440 product 1492645 M 0 1492645
0 Untitled_design_-_2023-05-01T174543.639.png 600 600 N 3781983 414441 product 1492645 M 0 1492645
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870861 431514 product 1543459 M 0 1543459
0 produts_img_600__2__ow8y-qm.png 600 600 N 3870880 431531 product 1543460 M 0 1543460
0 produts_img_600__1__ijl5-gm.png 600 600 N 3870902 431530 product 1543461 M 0 1543461
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870910 431515 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870913 431518 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870916 431521 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870919 431524 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870922 431527 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870927 431532 product 1543459 M 0 1543459
0 produts_img_600__3__q4w0-d6.png 600 600 N 3870930 431535 product 1543459 M 0 1543459