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 = 'A' 
  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.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "178.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "31.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": 31,
            "rows_produced_per_join": 31,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') 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": "67.21",
              "eval_cost": "6.20",
              "prefix_cost": "73.41",
              "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "110.61",
              "data_read_per_join": "23K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "147.81",
              "data_read_per_join": "18K"
            },
            "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 s-l1600.jpg 1600 1600 N 6063 2720 product 8034 A 1 8034
0 51-KW1satuL.jpg 500 500 N 81741 2718 product 83684 A 1 83684
0 3508440505118.jpg 1500 1500 N 81803 2719 product 83746 A 1 83746
0 PRADA65113578.jpg 500 500 N 82090 2867 product 84033 A 1 84033
0 white_ofpv-aa.jpg 400 400 N 82091 2875 product 84034 A 1 84034
0 PRADA65096853.jpg 357 500 N 82092 2876 product 84035 A 1 84035
0 creed-aventus-creed-for-men-aventus-eau-de-parfum-100-ml-3508441001114.png 700 860 N 6059 2717 product 8030 A 10 8030
0 item_XL_30774945_111116612.jpg 288 600 N 6312 2880 product 8280 A 10 8280
0 mcreedaventus3.3edps.jpg 500 500 N 81707 2717 product 83650 A 11 83650
0 s-l1600_xsta-l6.jpg 645 475 N 82131 2880 product 84074 A 11 84074
0 s-l1600_xsta-l6_pw4x-mf.jpg 645 475 N 82132 2880 product 84075 A 11 84075