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 (
    '9805', '9806', '9807', '9808', '9809', 
    '9810', '9811', '9812', '9813', '9814', 
    '9815', '9816', '9817', '9818', '9819', 
    '9820'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "102.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "18.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": 18,
            "rows_produced_per_join": 18,
            "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 ('9805','9806','9807','9808','9809','9810','9811','9812','9813','9814','9815','9816','9817','9818','9819','9820')))",
            "cost_info": {
              "read_cost": "37.61",
              "eval_cost": "3.60",
              "prefix_cost": "41.21",
              "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": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "18.00",
              "eval_cost": "3.60",
              "prefix_cost": "62.81",
              "data_read_per_join": "13K"
            },
            "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": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "18.00",
              "eval_cost": "3.60",
              "prefix_cost": "84.41",
              "data_read_per_join": "10K"
            },
            "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 OTL-HK0616_1.jpg 300 542 N 19451 9812 product 21413 M 0 21413
0 OCEU-IPH6-FW2M-SB_2.jpg 191 264 N 20627 9805 product 22589 M 0 22589
0 OTL-DC0260.jpg 500 500 N 20628 9806 product 22590 M 0 22590
0 F00041452__-1.jpg 1000 1000 N 20629 9807 product 22591 M 0 22591
0 sup1.jpg 1000 1000 N 20630 9808 product 22592 M 0 22592
0 k1.jpg 1000 1003 N 20631 9809 product 22593 M 0 22593
0 unicorn_1.jpg 500 500 N 20632 9810 product 22594 M 0 22594
0 OTL-HK0608_1.png 300 530 N 20633 9811 product 22595 M 0 22595
0 OTL-LOL0632_1.jpg 300 506 N 20634 9813 product 22596 M 0 22596
0 OTL-LOL0633_1.jpg 300 570 N 20635 9814 product 22597 M 0 22597
0 OTL-PK0517_1.jpg 500 500 N 20636 9815 product 22598 M 0 22598
0 OTL-PK0602_1.png 300 465 N 20637 9816 product 22599 M 0 22599
0 PNZ1051.png 1100 1100 N 20638 9817 product 22600 M 0 22600
0 PNZ1062.jpg 225 225 N 20639 9818 product 22601 M 0 22601
0 PNZ2013_2.jpg 800 800 N 20640 9819 product 22602 M 0 22602
0 PNZ2014_2_5d6e0e32-865d-433d-928d-54a22cd53afc.jpg 800 800 N 20641 9820 product 22603 M 0 22603