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 (
    431687, 431688, 431689, 431690, 431691, 
    431692, 431693, 431694, 431695, 431696, 
    431697, 431783, 431784, 431785, 431786, 
    431787, 431788, 431789, 431790, 431791, 
    431802, 431803, 431804, 431805, 431806, 
    431807, 431808, 431809, 431810, 431514, 
    431515, 431518, 431521, 431524, 431527, 
    431532, 431535, 431530, 431531, 431590, 
    431588, 431592, 431594, 431596, 431598, 
    431600, 431602, 431604, 431561, 431589, 
    431659, 431660, 431661, 431662, 431663, 
    431664, 431665, 431666, 431552, 431553, 
    431554, 431555, 431556, 431557, 431558, 
    431559, 431560, 431542, 431543, 431544, 
    431545, 431546, 431547, 431548, 431549, 
    431550, 431551, 431680, 431767, 431768, 
    431769, 431770, 431771, 431772, 431773, 
    431774, 431775, 431698, 431699, 431703, 
    431707, 431711, 431715, 431722, 431726, 
    431730, 431719, 431720, 431721
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00223

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "574.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "99.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": 99,
            "rows_produced_per_join": 99,
            "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 (431687,431688,431689,431690,431691,431692,431693,431694,431695,431696,431697,431783,431784,431785,431786,431787,431788,431789,431790,431791,431802,431803,431804,431805,431806,431807,431808,431809,431810,431514,431515,431518,431521,431524,431527,431532,431535,431530,431531,431590,431588,431592,431594,431596,431598,431600,431602,431604,431561,431589,431659,431660,431661,431662,431663,431664,431665,431666,431552,431553,431554,431555,431556,431557,431558,431559,431560,431542,431543,431544,431545,431546,431547,431548,431549,431550,431551,431680,431767,431768,431769,431770,431771,431772,431773,431774,431775,431698,431699,431703,431707,431711,431715,431722,431726,431730,431719,431720,431721)))",
            "cost_info": {
              "read_cost": "217.81",
              "eval_cost": "19.80",
              "prefix_cost": "237.61",
              "data_read_per_join": "9K"
            },
            "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": 99,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "99.00",
              "eval_cost": "19.80",
              "prefix_cost": "356.41",
              "data_read_per_join": "75K"
            },
            "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": 99,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "99.00",
              "eval_cost": "19.80",
              "prefix_cost": "475.21",
              "data_read_per_join": "58K"
            },
            "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 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
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871134 431542 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871135 431543 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871136 431544 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871137 431545 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871138 431546 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871139 431547 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871140 431548 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871141 431549 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871142 431550 product 1543471 M 0 1543471
0 produts_img_600__4__sqrt-5w.png 600 600 N 3871143 431551 product 1543471 M 0 1543471
0 produts_img_600__5__jigw-5r.png 600 600 N 3871144 431552 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871145 431553 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871146 431554 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871147 431555 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871148 431556 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871149 431557 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871150 431558 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871151 431559 product 1543472 M 0 1543472
0 produts_img_600__5__jigw-5r.png 600 600 N 3871152 431560 product 1543472 M 0 1543472
0 produts_img_600__10__gfgm-0t.png 600 600 N 3871179 431561 product 1543476 M 0 1543476
0 produts_img_600__9_.png 600 600 N 3871201 431589 product 1543477 M 0 1543477
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871218 431588 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871220 431590 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871222 431592 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871224 431594 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871226 431596 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871228 431598 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871230 431600 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871232 431602 product 1543473 M 0 1543473
0 produts_img_600__6__t8t5-kk.png 600 600 N 3871234 431604 product 1543473 M 0 1543473
0 produts_img_600__16_.png 600 600 N 3871429 431659 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871438 431660 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871439 431661 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871440 431662 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871441 431663 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871442 431664 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871443 431665 product 1543491 M 0 1543491
0 produts_img_600__16_.png 600 600 N 3871444 431666 product 1543491 M 0 1543491
0 produts_img_600__20__fktq-d8.png 600 600 N 3871469 431680 product 1543499 M 0 1543499
0 produts_img_600__22_.png 600 600 N 3871476 431687 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871488 431688 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871489 431689 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871490 431690 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871491 431691 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871492 431692 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871493 431693 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871494 431694 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871495 431695 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871496 431696 product 1543506 M 0 1543506
0 produts_img_600__22_.png 600 600 N 3871497 431697 product 1543506 M 0 1543506
0 produts_img_600__28_.png 600 600 N 3871498 431698 product 1543508 M 0 1543508
0 produts_img_600__25_.png 600 600 N 3871596 431721 product 1543511 M 0 1543511
0 produts_img_600__24_.png 600 600 N 3871629 431719 product 1543512 M 0 1543512
0 produts_img_600__23_.png 600 600 N 3871665 431720 product 1543513 M 0 1543513
0 produts_img_600__28_.png 600 600 N 3871679 431699 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871683 431703 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871687 431707 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871691 431711 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871695 431715 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871702 431722 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871706 431726 product 1543508 M 0 1543508
0 produts_img_600__28_.png 600 600 N 3871710 431730 product 1543508 M 0 1543508
0 produts_img_600__36_.png 600 600 N 3871761 431767 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871762 431768 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871763 431769 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871764 431770 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871765 431771 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871766 431772 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871767 431773 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871768 431774 product 1543521 M 0 1543521
0 produts_img_600__36_.png 600 600 N 3871769 431775 product 1543521 M 0 1543521
0 produts_img_600__38_.png 600 600 N 3871777 431783 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871778 431784 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871779 431785 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871780 431786 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871781 431787 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871782 431788 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871783 431789 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871784 431790 product 1543523 M 0 1543523
0 produts_img_600__38_.png 600 600 N 3871785 431791 product 1543523 M 0 1543523
0 produts_img_600__40_.png 600 600 N 3871796 431802 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871797 431803 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871798 431804 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871799 431805 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871800 431806 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871801 431807 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871802 431808 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871803 431809 product 1543525 M 0 1543525
0 produts_img_600__40_.png 600 600 N 3871804 431810 product 1543525 M 0 1543525