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 (
    '12947', '12948', '12949', '12950', 
    '12951', '12952', '12953', '12954', 
    '12955', '12956', '12957', '12958', 
    '12959', '12960', '12961', '12962'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "112.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "20.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": 20,
            "rows_produced_per_join": 20,
            "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 ('12947','12948','12949','12950','12951','12952','12953','12954','12955','12956','12957','12958','12959','12960','12961','12962')))",
            "cost_info": {
              "read_cost": "40.01",
              "eval_cost": "4.00",
              "prefix_cost": "44.01",
              "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": 20,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "20.00",
              "eval_cost": "4.00",
              "prefix_cost": "68.01",
              "data_read_per_join": "15K"
            },
            "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": 20,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "20.00",
              "eval_cost": "4.00",
              "prefix_cost": "92.01",
              "data_read_per_join": "11K"
            },
            "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 fdd4275636bc04d02fb880df3100cbeb.jpg 700 600 N 26584 12947 product 28546 M 0 28546
0 7aa52f22058f9e85eb634cbbe06f91b3.jpg 700 600 N 26585 12948 product 28547 M 0 28547
0 a35742db5d92f1d23924563d38aca101.jpg 700 600 N 26586 12949 product 28548 M 0 28548
0 6de0e4bef87e7b5adb34c8c7e6c8a4d4.jpg 700 600 N 26587 12950 product 28549 M 0 28549
0 91abb55d40ab8ba1962a9bacb997cbc2.jpg 700 600 N 26588 12951 product 28550 M 0 28550
0 7340c5b26c3e0f7005af6004f1fa2572.jpg 700 600 N 26589 12952 product 28551 M 0 28551
0 68265458ad9e557a480cd2472523162d.jpg 700 600 N 26590 12953 product 28552 M 0 28552
0 114ba3aa7ea8a4d02a947e50e0d3f136.jpg 700 600 N 26591 12954 product 28553 M 0 28553
0 72bbe0af2f826ca02c6f9803f1d48464.jpg 700 600 N 26592 12955 product 28554 M 0 28554
0 fda5bf46d619165b0c85de3a6d1cf1f1.jpg 700 600 N 26593 12956 product 28555 M 0 28555
0 51ujaQY9KrL.jpg 417 500 N 26594 12957 product 28556 M 0 28556
0 af1cf3fdeb786ce0cee65bfe4cb1bc95.jpg 700 600 N 26595 12958 product 28557 M 0 28557
0 0ad8cd0a51e72c42251b0168fc867b1f.jpg 700 600 N 26596 12959 product 28558 M 0 28558
0 afd6734afa73d3b20c68bf45bf3fb899.jpg 700 600 N 26597 12960 product 28559 M 0 28559
0 ee9f2d781d6968094a5ee02dafed0e41.jpg 700 600 N 26598 12961 product 28560 M 0 28560
0 ee9f2d781d6968094a5ee02dafed0e41_dk1s-lz.jpg 700 600 N 26599 12962 product 28561 M 0 28561