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 (
    '7538', '7537', '7536', '7523', '7522', 
    '7521', '7520', '7346', '7345', '7344', 
    '7343', '7342', '7341', '7340', '7339', 
    '7338'
  ) 
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 ('7538','7537','7536','7523','7522','7521','7520','7346','7345','7344','7343','7342','7341','7340','7339','7338')))",
            "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 legend_Spirit_1.jpg 440 440 N 14353 7339 product 16315 M 0 16315
0 cool_water_125.jpg 762 988 N 14355 7340 product 16317 M 0 16317
0 cool_water_75_ml_1.jpg 512 512 N 14356 7341 product 16318 M 0 16318
0 hot_water_110__1.jpg 824 1100 N 14358 7342 product 16320 M 0 16320
0 silver_shadow_1.jpg 950 938 N 14360 7343 product 16322 M 0 16322
0 the_game_1.jpg 600 526 N 14362 7344 product 16324 M 0 16324
0 ck_1_shock_1.jpg 1000 1000 N 14365 7346 product 16327 M 0 16327
0 aseel_Al_Shiyukh.jpg 1054 1280 N 15199 7522 product 17161 M 0 17161
0 white_oud.jpg 854 1086 N 15200 7523 product 17162 M 0 17162
0 love.jpg 862 1044 N 15207 7536 product 17169 M 0 17169
0 perfume_web.jpg 640 626 N 37384 7520 product 39346 M 0 39346
0 perfume.jpg 640 626 N 37692 7345 product 39654 M 0 39654
0 atar_web.jpg 640 626 N 61981 7521 product 63937 M 0 63937
0 mount_perfume._web_jpg.jpg 640 626 N 62007 7338 product 63963 M 0 63963
0 Ahasees_qron-fp.jpg 715 1139 N 16200 7538 product 18162 M 1 18162
0 my_jasmine_jur3-4e.jpg 714 1111 N 16201 7537 product 18163 M 1 18163