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 = 'M' 
  AND q_images_links.object_id IN (
    '9170', '9171', '9172', '9173', '9174', 
    '9175', '9176', '9177', '9178', '9179', 
    '9180', '9181', '9182', '9183', '9185', 
    '9186', '9187', '9188', '9189', '9190', 
    '9191', '9192', '9193', '9194', '9195', 
    '9196', '9197', '9198', '9199', '9200', 
    '9201', '9202'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00234

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "185.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('9170','9171','9172','9173','9174','9175','9176','9177','9178','9179','9180','9181','9182','9183','9185','9186','9187','9188','9189','9190','9191','9192','9193','9194','9195','9196','9197','9198','9199','9200','9201','9202')))",
            "cost_info": {
              "read_cost": "70.41",
              "eval_cost": "6.40",
              "prefix_cost": "76.81",
              "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "115.21",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "153.61",
              "data_read_per_join": "19K"
            },
            "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 BP-EX-GREEN-01-K_LS.jpg 800 800 N 19994 9171 product 21956 M 0 21956
0 BP-EX-PINK-01-K_LS1.jpg 800 800 N 19995 9172 product 21957 M 0 21957
0 BP-IF-BLUE-01-K_LS.jpg 800 800 N 19996 9173 product 21958 M 0 21958
0 BP-IF-PINK-01-K_LS.jpg 800 800 N 19997 9174 product 21959 M 0 21959
0 BP-IF-PURPLE-01-K_1.jpg 800 800 N 19998 9175 product 21960 M 0 21960
0 buddyphones-wave-blaa-786471749180-bt-bp-wv-robot-7720-01.jpg 1200 1200 N 20001 9178 product 21963 M 0 21963
0 buddyphones-wave-pink-unicorn-786471749005-bt-bp-wv-unicorn-7721-01.jpg 1200 1200 N 20002 9179 product 21964 M 0 21964
0 CAT-APD-GITD_LS.jpg 800 800 N 20004 9181 product 21966 M 0 21966
0 CAT-APD-GRN_LS2.jpg 800 800 N 20005 9182 product 21967 M 0 21967
0 CAT-APD-TBFC_LS2.jpg 800 800 N 20008 9185 product 21970 M 0 21970
0 CAT-APD-WHT_LS2.jpg 800 800 N 20009 9186 product 21971 M 0 21971
0 CAT-DRPD6TH-BLK_3.jpg 1024 1024 N 20010 9187 product 21972 M 0 21972
0 CAT-DRPHX-BLK_1.jpg 1024 1024 N 20011 9188 product 21973 M 0 21973
0 CAT-DRPHX-COR_1.jpg 1024 1024 N 20013 9190 product 21975 M 0 21975
0 CAT-DRPHX-GRN_1.jpg 1024 1024 N 20014 9191 product 21976 M 0 21976
0 CAT-DRPHX-TBFC_1.jpg 1024 1024 N 20015 9192 product 21977 M 0 21977
0 CAT-DRPHX-BLKL_2_14598e12-514f-4f24-859d-063cffb68dfb.jpg 1500 1500 N 20016 9193 product 21978 M 0 21978
0 Lifestyle_1.jpg 956 956 N 20018 9195 product 21980 M 0 21980
0 Lifestyle_4.jpg 892 892 N 20019 9196 product 21981 M 0 21981
0 Watermelon-lifestyle_1200x_fe63760b-c3ef-46ce-ba16-f887b27ea5dc.jpg 1024 1024 N 20020 9197 product 21982 M 0 21982
0 Lifestyle_5.jpg 1080 1080 N 20021 9198 product 21983 M 0 21983
0 Retail-box-Classic-Yellow-Lemon-3.jpg 800 800 N 20022 9199 product 21984 M 0 21984
0 CHP-110064_2.jpg 1500 1000 N 20023 9200 product 21985 M 0 21985
0 CH-PM6-PW-G_3.jpg 225 225 N 20024 9201 product 21986 M 0 21986
0 Apple_Pencil_Grip_Case_004_1500x1500_ac89e20e-817b-43c9-a0c3-d913cd927177_1024x1024.jpg 1024 1024 N 20832 9194 product 22794 M 0 22794
0 2_qzln-hg.jpg 640 626 N 79744 9202 product 81687 M 0 81687
0 1_fgbr-7d.jpg 640 626 N 81132 9177 product 83075 M 0 83075
0 3_m7ta-xb.jpg 640 626 N 81482 9180 product 83425 M 0 83425
0 2_1xdj-kf.jpg 640 626 N 81493 9170 product 83436 M 0 83436
0 2_yvmh-ap.jpg 640 626 N 82018 9176 product 83961 M 0 83961
0 71p5KBlYHFL._AC_SL1500_.jpg 1500 1280 N 80942 9189 product 82885 M 2 82885