SELECT 
  q_images.*, 
  q_images_links.*, 
  q_common_descriptions.description AS alt, 
  q_images.image_id AS images_image_id 
FROM 
  q_images_links 
  LEFT JOIN q_images ON q_images_links.detailed_id = q_images.image_id 
  LEFT JOIN q_common_descriptions ON q_common_descriptions.object_id = q_images.image_id 
  AND q_common_descriptions.object_holder = 'images' 
  AND q_common_descriptions.lang_code = 'en' 
WHERE 
  q_images_links.object_type = 'product' 
  AND q_images_links.type = 'A' 
  AND q_images_links.object_id IN (
    '10415', '10416', '10417', '10418', 
    '10419', '10420', '10421', '10422', 
    '10423', '10424', '10425', '10426', 
    '10427', '10428', '10429', '10431'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00185

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "198.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "38.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "q_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": 38,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('10415','10416','10417','10418','10419','10420','10421','10422','10423','10424','10425','10426','10427','10428','10429','10431')))",
            "cost_info": {
              "read_cost": "61.61",
              "eval_cost": "7.60",
              "prefix_cost": "69.21",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "q_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "portal.q_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "38.00",
              "eval_cost": "7.60",
              "prefix_cost": "114.81",
              "data_read_per_join": "29K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "q_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "portal.q_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "38.00",
              "eval_cost": "7.60",
              "prefix_cost": "160.41",
              "data_read_per_join": "22K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

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 317jAXzrbSL.jpg 500 500 N 21344 10416 product 23306 A 1 23306
0 51COZ-qiLZL._SL1000__p6et-rm.jpg 1000 1000 N 21355 10419 product 23317 A 1 23317
0 pvm_xiaomi-mijia-air-purifier-pro-02_14581_1478879131.jpg 315 315 N 26481 10421 product 28443 A 1 28443
0 4131zF0PtLL.jpg 500 500 N 26484 10424 product 28446 A 1 28446
0 839706380.g_400-w-st_g.jpg 400 400 N 26717 10431 product 28679 A 1 28679
0 31vSyKYnThL.jpg 500 500 N 26718 10429 product 28680 A 1 28680
0 Original-Xiaomi-Mijia-Smart-Bed-Lights-Indoor-Bedside-Lamp-16-Million-RGB-Dimmed-Lights-Touch-Control.jpg_640x640.jpg 640 640 N 26722 10428 product 28684 A 1 28684
0 611lwotRmSL._SL1050_.jpg 1050 1050 N 26734 10418 product 28696 A 1 28696
0 21nTdyWwRRL.jpg 500 500 N 21360 10420 product 23322 A 2 23322
0 41CkzE0aPKL.jpg 500 500 N 21586 10416 product 23548 A 2 23548
0 61NTRE3A0PL._SL1000__j9a7-fs.jpg 1000 1000 N 21594 10419 product 23556 A 2 23556
0 pvm_xiaomi-mijia-air-purifier-pro-03_14581_1478879131.jpg 315 315 N 26482 10421 product 28444 A 2 28444
0 41jdiJJ0OXL._SL1000_.jpg 1000 1000 N 26485 10424 product 28447 A 2 28447
0 Original-Xiaomi-Mijia-Thermostatic-Electric-Kettle-1-5L-Control-by-Cell-Phone-App-12-Hours-Constant.jpg 800 800 N 26719 10429 product 28681 A 2 28681
0 61-5eMDojTL._SL1050_.jpg 1050 1050 N 26735 10418 product 28697 A 2 28697
0 51exqbhLtTL._SL1000_.jpg 1000 1000 N 21587 10416 product 23549 A 3 23549
0 61XRtAuie5L._SL1000__udlm-iw.jpg 1000 1000 N 21595 10419 product 23557 A 3 23557
0 21UAS-QLCWL.jpg 500 500 N 21599 10420 product 23561 A 3 23561
0 61D4QeTP73L._SL1226_.jpg 1226 1226 N 26736 10418 product 28698 A 3 28698
0 41CN9E3rFiL._SL1000_.jpg 1000 1000 N 21353 10418 product 23315 A 4 23315
0 51iCrhNwseL._SL1000_.jpg 1000 1000 N 21588 10416 product 23550 A 4 23550
0 51r3whnrAAL_bw6p-7g.jpg 500 500 N 21596 10419 product 23558 A 4 23558
0 2193BLCZ9FL.jpg 500 500 N 21600 10420 product 23562 A 4 23562
0 61w6uSeTE9L._SL1000__tfk0-yi.jpg 1000 1000 N 21597 10419 product 23559 A 5 23559
0 31OMESmo15L.jpg 500 500 N 21601 10420 product 23563 A 5 23563
0 41s4XeE336L._SL1021_.jpg 1021 1021 N 26737 10418 product 28699 A 6 28699
0 714IC6qf7LL._SL1500_.jpg 1500 1500 N 26738 10418 product 28700 A 7 28700
0 31-qMt-9XxL.jpg 500 500 N 21589 10417 product 23551 A 10 23551
0 41MVMf0_H3L.jpg 500 500 N 21602 10422 product 23564 A 10 23564
0 51V8J1t9KdL.jpg 500 500 N 21606 10423 product 23568 A 10 23568
0 51VQOL1SxTL._SL1000_.jpg 1000 1000 N 21610 10425 product 23572 A 10 23572
0 51L3P-1GAXL._SL1213_.jpg 1213 692 N 21611 10426 product 23573 A 10 23573
0 71mYBw1D1RL._SL1500_.jpg 1500 1500 N 21614 10427 product 23576 A 10 23576
0 31Xr-N-CI_L.jpg 500 500 N 21590 10417 product 23552 A 20 23552
0 51qjSxOWtBL.jpg 500 500 N 21603 10422 product 23565 A 20 23565
0 510wZ-6SM4L._SL1000_.jpg 1000 1000 N 21607 10423 product 23569 A 20 23569
0 517FwIsqU-L._SL1073_.jpg 1073 617 N 21612 10426 product 23574 A 20 23574
0 61OXzjW01wL._SL1500_.jpg 1500 839 N 21615 10427 product 23577 A 20 23577
0 41ZnfetNjCL.jpg 500 500 N 21591 10417 product 23553 A 30 23553
0 51u7b-o9uTL.jpg 500 500 N 21604 10422 product 23566 A 30 23566
0 61PReGCTbXL._SL1000_.jpg 1000 1000 N 21608 10423 product 23570 A 30 23570
0 41iSLhUsjzL.jpg 500 369 N 21613 10426 product 23575 A 30 23575
0 91fe7BEjOhL._SL1500_.jpg 1500 771 N 21616 10427 product 23578 A 30 23578
0 41x4AP_PvtL._SL1200_.jpg 1200 800 N 21592 10417 product 23554 A 40 23554
0 51_Bd8kWXcL.jpg 500 500 N 21605 10422 product 23567 A 40 23567
0 51_h-PEuu3L._SL1000_.jpg 1000 814 N 21609 10423 product 23571 A 40 23571
0 81fDdqNRb_L._SL1188_.jpg 1080 1188 N 21617 10427 product 23579 A 40 23579