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 (
    '2867', '2868', '2869', '2870', '2871', 
    '2872', '2873', '2874', '2875', '2876', 
    '2877', '2878', '2879', '2880', '2717', 
    '2718', '2719', '2720', '2721', '2722', 
    '2723', '2725', '2726', '2727', '2728', 
    '2729', '2730', '2731', '2732', '2733'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00192

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "174.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "30.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": 30,
            "rows_produced_per_join": 30,
            "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 ('2867','2868','2869','2870','2871','2872','2873','2874','2875','2876','2877','2878','2879','2880','2717','2718','2719','2720','2721','2722','2723','2725','2726','2727','2728','2729','2730','2731','2732','2733')))",
            "cost_info": {
              "read_cost": "66.01",
              "eval_cost": "6.00",
              "prefix_cost": "72.01",
              "data_read_per_join": "2K"
            },
            "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": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "30.00",
              "eval_cost": "6.00",
              "prefix_cost": "108.01",
              "data_read_per_join": "22K"
            },
            "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": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "30.00",
              "eval_cost": "6.00",
              "prefix_cost": "144.01",
              "data_read_per_join": "17K"
            },
            "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 mcreedaventus3.3edps.jpg 500 500 N 6058 2717 product 8029 M 0 8029
0 51-KW1satuL.jpg 500 500 N 6060 2718 product 8031 M 0 8031
0 3508440505118.jpg 1500 1500 N 6061 2719 product 8032 M 0 8032
0 461c2a14-0796-4e7e-aa6b-d83e4e9ee827.jpg 1700 1700 N 6062 2720 product 8033 M 0 8033
0 297566.jpg 2000 2000 N 6064 2721 product 8035 M 0 8035
0 creed-les_royales_exclusives_jardin_d__039_amalfi_eau_de_parfum_75ml-1-768_1024_75-6973198_1.jpg 768 1024 N 6065 2722 product 8036 M 0 8036
0 res_2bf8f6bea913fa08646e3ed39e1d57be_full.jpg 1890 1890 N 6066 2723 product 8037 M 0 8037
0 s-l1600_29j2-yz.jpg 900 900 N 6068 2725 product 8039 M 0 8039
0 871854103816.jpg 1000 1000 N 6069 2726 product 8040 M 0 8040
0 3508441104648.jpg 1000 1000 N 6070 2727 product 8041 M 0 8041
0 s-l1600_6zle-up.jpg 1000 1000 N 6071 2728 product 8042 M 0 8042
0 s-l1600_nok8-n5.jpg 1000 1000 N 6072 2729 product 8043 M 0 8043
0 creed-les_royales_exclusives_sublime_vanille_eau_de_parfum_75ml-1-768_1024_75-6973195_1.jpg 768 1024 N 6073 2730 product 8044 M 0 8044
0 tabarome.jpg 1000 1000 N 6074 2731 product 8045 M 0 8045
0 s-l1000_60xw-33.jpg 1000 921 N 6075 2732 product 8046 M 0 8046
0 FN308162.jpg 900 900 N 6076 2733 product 8047 M 0 8047
0 PRADA65113578.jpg 500 500 N 6298 2867 product 8266 M 0 8266
0 PRADA65091039.jpg 500 500 N 6299 2868 product 8267 M 0 8267
0 8435137765959_acee3085a9595c225980a84751e40041.jpg 600 600 N 6300 2869 product 8268 M 0 8268
0 8435137751044_9d93e5241c099de486a35cb70f1e9c1b.jpg 500 500 N 6301 2870 product 8269 M 0 8269
0 item_XL_45124936_c03364f50e45f.jpg 600 483 N 6302 2871 product 8270 M 0 8270
0 PRADA65055934.jpg 500 500 N 6303 2872 product 8271 M 0 8271
0 white.jpg 400 400 N 6304 2873 product 8272 M 0 8272
0 PRADA65106677.jpg 500 402 N 6305 2874 product 8273 M 0 8273
0 white_ofpv-aa.jpg 400 400 N 6306 2875 product 8274 M 0 8274
0 PRADA65096853.jpg 357 500 N 6307 2876 product 8275 M 0 8275
0 PRADA65021558.jpg 450 500 N 6308 2877 product 8276 M 0 8276
0 PRADA65105844.jpg 494 500 N 6309 2878 product 8277 M 0 8277
0 ebay.jpg 600 600 N 6310 2879 product 8278 M 0 8278
0 s-l1600_xsta-l6.jpg 645 475 N 6311 2880 product 8279 M 0 8279