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 (
    '32881', '32882', '32883', '32884', 
    '32885', '32886', '32887', '32888', 
    '32889', '32890', '32891', '10533', 
    '10532', '10531', '10530', '10529', 
    '10524', '10521', '8380', '8381', 
    '8383', '8384', '8385', '8386', '8387', 
    '8388', '8389', '8390', '8391', '8392', 
    '8393', '8394'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00201

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "204.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "36.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": 36,
            "rows_produced_per_join": 36,
            "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 ('32881','32882','32883','32884','32885','32886','32887','32888','32889','32890','32891','10533','10532','10531','10530','10529','10524','10521','8380','8381','8383','8384','8385','8386','8387','8388','8389','8390','8391','8392','8393','8394')))",
            "cost_info": {
              "read_cost": "75.21",
              "eval_cost": "7.20",
              "prefix_cost": "82.41",
              "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "36.00",
              "eval_cost": "7.20",
              "prefix_cost": "125.61",
              "data_read_per_join": "27K"
            },
            "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "36.00",
              "eval_cost": "7.20",
              "prefix_cost": "168.81",
              "data_read_per_join": "21K"
            },
            "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 25156M-1-item_XL_39414092_153410052.jpg 600 600 N 17695 8380 product 19657 M 0 19657
0 25161L-1-item_XL_39414198_153411140.jpg 600 600 N 17699 8387 product 19661 M 0 19661
0 25161L-2-item_XL_39414208_153411244.jpg 600 600 N 17702 8388 product 19664 M 0 19664
0 25161L-3-item_XL_39414215_153411355.jpg 600 600 N 17705 8389 product 19667 M 0 19667
0 25161L-4-item_XL_39414222_153411475.jpg 600 600 N 17708 8390 product 19670 M 0 19670
0 25161L-5-item_XL_39414226_153411601.jpg 600 600 N 17711 8391 product 19673 M 0 19673
0 25161L-6-item_XL_39414239_153411700.jpg 600 600 N 17714 8392 product 19676 M 0 19676
0 25161L-7-item_XL_39414251_153411857.jpg 600 600 N 17717 8393 product 19679 M 0 19679
0 25161L-8-item_XL_39414079_153409897.jpg 600 600 N 17720 8394 product 19682 M 0 19682
0 25160L-1-item_XL_39414203_153411193.jpg 600 600 N 17746 8383 product 19708 M 0 19708
0 25160L-2-item_XL_39414210_153411282.jpg 600 600 N 17749 8384 product 19711 M 0 19711
0 25160L-3-item_XL_39414217_153411420.jpg 600 600 N 17752 8385 product 19714 M 0 19714
0 item_XL_39414105_153410217.jpg 600 600 N 18176 8381 product 20138 M 0 20138
0 71Tz2PSn39L._SL1500_.jpg 1500 1500 N 18730 8386 product 20692 M 0 20692
0 71zgMB3PX_L._SX522_.jpg 522 522 N 21881 10529 product 23843 M 0 23843
0 71616W7kDcL._SX522_.jpg 522 522 N 21884 10530 product 23846 M 0 23846
0 N17445284A_1.jpg 800 1091 N 21896 10533 product 23858 M 0 23858
0 23015M-2-1.jpg 4121 4000 N 44012 32883 product 45974 M 0 45974
0 23015M-3-1.jpg 4095 4000 N 44016 32884 product 45978 M 0 45978
0 23019M-1-1.jpg 4472 4000 N 44020 32885 product 45982 M 0 45982
0 23019M-2-1.jpg 4968 4000 N 44024 32886 product 45986 M 0 45986
0 23019M-3-1.jpg 4239 4000 N 44028 32887 product 45990 M 0 45990
0 23025M-1-1.jpg 4795 4000 N 44032 32888 product 45994 M 0 45994
0 23025M-2-1.jpg 4680 4000 N 44036 32889 product 45998 M 0 45998
0 23029M-1-1.jpg 4426 4000 N 45547 32890 product 47509 M 0 47509
0 23029M-2-1.jpg 6000 4000 N 45552 32891 product 47514 M 0 47514
0 watch.jpg 640 626 N 54542 10532 product 56503 M 0 56503
0 citron_watch_web.jpg 640 626 N 58522 10531 product 60478 M 0 60478
0 2_iisw-bh.jpg 640 626 N 81066 32881 product 83009 M 0 83009
0 2_s6e8-zn.jpg 640 626 N 82337 32882 product 84280 M 0 84280
0 watchweb.jpg 640 626 N 85053 10521 product 53618 M 0 53618
0 71B9XieiqcL._SX522_.jpg 522 522 N 85057 10524 product 23839 M 0 23839