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 (
    '10051', '10052', '10053', '10054', 
    '8682', '8662', '8582', '8583', '8584', 
    '8585', '8586', '8587', '8588', '8589', 
    '8590', '8591'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00129

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "92.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "16.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": 16,
            "rows_produced_per_join": 16,
            "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 ('10051','10052','10053','10054','8682','8662','8582','8583','8584','8585','8586','8587','8588','8589','8590','8591')))",
            "cost_info": {
              "read_cost": "35.21",
              "eval_cost": "3.20",
              "prefix_cost": "38.41",
              "data_read_per_join": "1K"
            },
            "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "3.20",
              "prefix_cost": "57.61",
              "data_read_per_join": "12K"
            },
            "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "3.20",
              "prefix_cost": "76.81",
              "data_read_per_join": "9K"
            },
            "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 41aufXATuTL._SY450__aazf-qk.jpg 450 450 N 17953 8582 product 19915 M 0 19915
0 51QSVa5X82L._SX466_.jpg 466 466 N 17954 8583 product 19916 M 0 19916
0 51GbZepCr3L._SX466_.jpg 466 466 N 17958 8584 product 19920 M 0 19920
0 51eTDo9Sq3L.jpg 500 500 N 17960 8585 product 19922 M 0 19922
0 51GRfew-dsL.jpg 500 500 N 17962 8586 product 19924 M 0 19924
0 61omrtNw95L._SX522_.jpg 522 522 N 17964 8587 product 19926 M 0 19926
0 41-so4Uoi0L.jpg 500 500 N 17969 8588 product 19931 M 0 19931
0 51bU2DTQSWL.jpg 500 500 N 17970 8589 product 19932 M 0 19932
0 51C_RohKOoL.jpg 500 500 N 17975 8590 product 19937 M 0 19937
0 41281oGG2iL.jpg 500 500 N 17976 8591 product 19938 M 0 19938
0 Loozykit-5-Grids-Bra-Underwear-Organizer-For-Women-Girls-Socks-Storage-Boxes-Wardrobe-Closet-Drawer-Container.jpg_640x640.jpg 640 640 N 18174 8662 product 20136 M 0 20136
0 61qLM5s6buL._SX569_.jpg 569 569 N 18184 8682 product 20146 M 0 20146
0 51Svyby-SnL._SL1200_.jpg 1200 750 N 18608 10052 product 20570 M 0 20570
0 41-5jkzMyFL._SL1024_.jpg 1024 1024 N 18616 10054 product 20578 M 0 20578
0 360-Angle-Panoramic-Wireless-720P-Full-HD.jpg_350x350.jpg 350 350 N 18654 10053 product 20616 M 0 20616
0 41Dwb2Usf7L_t897-w4.jpg 500 500 N 85016 10051 product 20619 M 0 20619