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 (
    '37325', '37326', '37327', '37328', 
    '37329', '37330', '37331', '37332', 
    '37333', '37334', '37335', '37336', 
    '37337', '37338', '37339', '37340'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00125

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "145.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "27.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": 27,
            "rows_produced_per_join": 27,
            "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 ('37325','37326','37327','37328','37329','37330','37331','37332','37333','37334','37335','37336','37337','37338','37339','37340')))",
            "cost_info": {
              "read_cost": "48.41",
              "eval_cost": "5.40",
              "prefix_cost": "53.81",
              "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": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.00",
              "eval_cost": "5.40",
              "prefix_cost": "86.21",
              "data_read_per_join": "20K"
            },
            "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": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.00",
              "eval_cost": "5.40",
              "prefix_cost": "118.61",
              "data_read_per_join": "16K"
            },
            "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 711K89QQbZL._SL1500_.jpg 1500 1500 N 58487 37325 product 60443 M 0 60443
0 61teGJscEuL._UY741_.jpg 388 741 N 58492 37329 product 60448 M 0 60448
0 610fvU_2a-L._SL1000_.jpg 1000 1000 N 58493 37330 product 60449 M 0 60449
0 660775_00_r17.jpg 750 680 N 58496 37328 product 60452 M 0 60452
0 375x500.993.jpg 375 500 N 58497 37331 product 60453 M 0 60453
0 31J3RxqIQIL.jpg 500 500 N 58500 37333 product 60456 M 0 60456
0 71TJ0lKmdVL._SL1500_.jpg 1500 1500 N 58501 37334 product 60457 M 0 60457
0 61gWSFf6aoL._SL1100_.jpg 762 1100 N 58502 37335 product 60458 M 0 60458
0 31ORNG9vB6L.jpg 400 500 N 58505 37337 product 60461 M 0 60461
0 61chnzqia6L._SL1500_.jpg 1500 1500 N 58507 37340 product 60463 M 0 60463
0 41m0oV58ZBL.jpg 500 500 N 58509 37339 product 60465 M 0 60465
0 61UeuCdC0xL._SX522_.jpg 522 522 N 58519 37326 product 60475 M 0 60475
0 375x500.37681.jpg 375 500 N 58525 37332 product 60481 M 0 60481
0 41_xJq5FGpL.jpg 500 500 N 62320 37327 product 64276 M 0 64276
0 am0001633_1.jpg 800 800 N 62321 37338 product 64277 M 0 64277
0 41ubDtQyQmL.jpg 423 500 N 58504 37336 product 60460 M 1 60460