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 (
    '30992', '30993', '30994', '30995', 
    '30996', '30997', '30998', '30999', 
    '31000', '31001', '31002', '31003', 
    '31005', '31006', '31007', '31008'
  ) 
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": "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 ('30992','30993','30994','30995','30996','30997','30998','30999','31000','31001','31002','31003','31005','31006','31007','31008')))",
            "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 61lw0QIrQML._AC_UL436_.jpg 430 436 N 49353 31007 product 51314 M 0 51314
0 download__3__xsq9-5f.jpg 300 300 N 49355 31006 product 51316 M 0 51316
0 61V3MntSqlL._AC_UL436_.jpg 356 436 N 49361 31005 product 51322 M 0 51322
0 71menuYQnEL._AC_UL436_.jpg 436 436 N 49378 31003 product 51339 M 0 51339
0 51CpoodlXiL._AC_UL436_.jpg 327 436 N 49380 31002 product 51341 M 0 51341
0 51B5IGeTFNL._AC_UL436_.jpg 222 436 N 49383 30999 product 51344 M 0 51344
0 61txaAkrwVL._AC_UL436_.jpg 436 385 N 49386 30998 product 51347 M 0 51347
0 710GEFNa-ML._AC_UL436_.jpg 436 436 N 49391 30996 product 51352 M 0 51352
0 61mOnp8mGIL._AC_UL436_.jpg 436 385 N 49394 30995 product 51355 M 0 51355
0 71VKds1ZxcL._AC_UL436_.jpg 436 436 N 49395 30994 product 51356 M 0 51356
0 71ZwbroPeuL._AC_UL436_.jpg 436 436 N 49398 30992 product 51359 M 0 51359
0 71K-VA-u6qL._SL1000_.jpg 1000 1000 N 49650 31001 product 51611 M 0 51611
0 714dCvZ3iBL._SL1024_.jpg 1024 1024 N 49652 30997 product 51613 M 0 51613
0 61nXqSyOC6L._SL1000_.jpg 1000 1000 N 65529 31000 product 67480 M 0 67480
0 2_niuh-92.jpg 640 626 N 81782 30993 product 83725 M 0 83725