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 (
    '6153', '6154', '6155', '6156', '6157', 
    '6158', '6159', '6160', '6161', '6162', 
    '6163', '6164', '6165', '6166', '6167', 
    '5845'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00112

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 ('6153','6154','6155','6156','6157','6158','6159','6160','6161','6162','6163','6164','6165','6166','6167','5845')))",
            "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 ADDS-25858_LS.jpg 800 800 N 11235 5845 product 13197 M 0 13197
0 BKN-F8J221BT04-BLK_1_c3730af0-5ec9-4fdf-80df-5816c415e27e.jpg 372 372 N 11528 6167 product 13490 M 0 13490
0 BKN-F8J207BT04-GLD_LS.jpg 800 800 N 11570 6153 product 13532 M 0 13532
0 BKN-F8J207BT04-SLV_LS.jpg 800 800 N 11571 6154 product 13533 M 0 13533
0 BKN-F8J125UK04-WHT_f6670307-c563-4fce-b3c0-924aa47853bd.jpg 650 650 N 11572 6166 product 13534 M 0 13534
0 F7U010DR06-SLV.jpg 650 650 N 11573 6163 product 13535 M 0 13535
0 BKN-F7U008DR05-WHT_dc0d98f6-a916-44ea-99da-1666e204b032.jpg 650 650 N 11574 6162 product 13536 M 0 13536
0 BKN-F3Y023BT2M_2.jpg 350 350 N 11575 6161 product 13537 M 0 13537
0 BKN-F2CU051BT04-BLK_3.jpeg 1000 1000 N 11576 6160 product 13538 M 0 13538
0 BKN-F2CU045BT2M-BLK.jpg 1000 1000 N 11577 6159 product 13539 M 0 13539
0 BKN-F2CU032BT06-WHT_3_c3fffaf0-c261-479c-a75c-312d81435104.jpg 1000 1000 N 11578 6158 product 13540 M 0 13540
0 BKN-F2CU032BT06-BLK_2_7dd366f1-3661-407e-9506-77856012b05b.jpg 1000 1000 N 11579 6157 product 13541 M 0 13541
0 BKN-F2CU029BT1M-BLK_2.jpeg 1000 1000 N 11580 6156 product 13542 M 0 13542
0 BKN-AV10172BT06-BLK_3.jpeg 1000 1000 N 11581 6155 product 13543 M 0 13543
0 BKN-F7U026BT04-BLK_5_4bb44c32-4488-4df2-a02f-5ad42162ed05.jpg 291 291 N 11582 6164 product 13544 M 0 13544
0 BKN-F8J050BT04-BLK_2.jpeg 1000 1000 N 11583 6165 product 13545 M 0 13545