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 (
    '8501', '8503', '8504', '8506', '8507', 
    '8508', '8509', '8510', '8511', '8512', 
    '8514', '8515', '8516', '8517', '8518', 
    '8519', '8521', '8477', '8476', '8474', 
    '8377', '8376', '8375', '8374', '8368', 
    '8367', '8272', '8271', '8270', '8269', 
    '8268', '8267'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00206

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 ('8501','8503','8504','8506','8507','8508','8509','8510','8511','8512','8514','8515','8516','8517','8518','8519','8521','8477','8476','8474','8377','8376','8375','8374','8368','8367','8272','8271','8270','8269','8268','8267')))",
            "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 41v890PStQL._SS160_.jpg 160 160 N 17239 8267 product 19201 M 0 19201
0 31sSxI0KvIL._SS160_.jpg 160 160 N 17240 8268 product 19202 M 0 19202
0 817ab8cae1e04fcba771d03ceba338db.jpg 750 750 N 17242 8269 product 19204 M 0 19204
0 ee32788193b54b21beda2ccb0a485f15.jpg 1000 1000 N 17245 8271 product 19207 M 0 19207
0 510C9fV-tdL.jpg 500 348 N 17251 8272 product 19213 M 0 19213
0 31qytV-yb2L.jpg 127 500 N 17497 8367 product 19459 M 0 19459
0 c5a5b87470da414c98ff52904c51eedf.jpg 325 260 N 17498 8368 product 19460 M 0 19460
0 35150a13ccc84431b11d1a1f994c64df.jpg 900 900 N 17515 8374 product 19477 M 0 19477
0 04a81dd2bd2d04316d613fcaf169815a.jpg 800 800 N 17517 8375 product 19479 M 0 19479
0 a717d6134ec4f19f58cb023f29bd5464.png 800 800 N 17519 8376 product 19481 M 0 19481
0 a1c1a4eb9ef44455a20d5b58a06ddb45.jpg 900 900 N 17543 8377 product 19505 M 0 19505
0 41bHZ84x8mL.jpg 500 500 N 17940 8476 product 19902 M 0 19902
0 419e3SP0UCL.jpg 500 500 N 18289 8514 product 20251 M 0 20251
0 31i50lwufwL.jpg 500 500 N 18296 8506 product 20258 M 0 20258
0 61ODrDruMFL._SL1500_.jpg 1500 1500 N 18297 8521 product 20259 M 0 20259
0 71Dv270IuqL._SL1500_.jpg 1500 1500 N 18324 8504 product 20286 M 0 20286
0 61UNnW-kMaL._SL1100_.jpg 762 1100 N 18327 8510 product 20289 M 0 20289
0 41oKj6JTDZL.jpg 500 314 N 18329 8511 product 20291 M 0 20291
0 31ptsQnLwhL.jpg 340 340 N 18333 8515 product 20295 M 0 20295
0 31AaLuMjduL.jpg 500 500 N 18335 8516 product 20297 M 0 20297
0 51jx1VhwHkL._SL1000_.jpg 1000 1000 N 18336 8508 product 20298 M 0 20298
0 61ialSgQ4OL._SL1000_.jpg 1000 1000 N 18343 8512 product 20305 M 0 20305
0 51VUdOPTg8L._SL1500_.jpg 1500 725 N 18345 8517 product 20307 M 0 20307
0 61Smx1StfQL._SL1000_.jpg 1000 1000 N 18347 8518 product 20309 M 0 20309
0 61qJt5f1byL._SL1500_.jpg 1500 1500 N 19341 8477 product 21303 M 0 21303
0 411GQXyalOL.jpg 260 488 N 19345 8474 product 21307 M 0 21307
0 51iq9iJhPjL._SX522_.jpg 522 306 N 19448 8501 product 21410 M 0 21410
0 panasonic.jpg 640 626 N 37712 8507 product 39674 M 0 39674
0 viser_watch.jpg 640 626 N 49570 8270 product 51531 M 0 51531
0 2_k5be-i3.jpg 640 626 N 82314 8509 product 84257 M 0 84257
0 51_uXCnj6GL._SL1200_.jpg 662 1200 N 19449 8503 product 21411 M 1 21411
0 Screen_Shot_2019-05-21_at_3.29.16_PM.png 508 548 N 19583 8519 product 21545 M 1 21545