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 (
    '30864', '30865', '30866', '30867', 
    '30868', '30869', '30870', '30871', 
    '30872', '30873', '30874', '30875', 
    '30876', '30877', '30878', '30879', 
    '30880', '30881', '30882', '30883', 
    '30884', '30885', '30886', '30887', 
    '30888', '30889', '30890', '30891', 
    '30892', '30893', '30894', '30895'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00184

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "272.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "50.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": 50,
            "rows_produced_per_join": 50,
            "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 ('30864','30865','30866','30867','30868','30869','30870','30871','30872','30873','30874','30875','30876','30877','30878','30879','30880','30881','30882','30883','30884','30885','30886','30887','30888','30889','30890','30891','30892','30893','30894','30895')))",
            "cost_info": {
              "read_cost": "92.01",
              "eval_cost": "10.00",
              "prefix_cost": "102.01",
              "data_read_per_join": "4K"
            },
            "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": 50,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "50.00",
              "eval_cost": "10.00",
              "prefix_cost": "162.01",
              "data_read_per_join": "38K"
            },
            "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": 50,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "50.00",
              "eval_cost": "10.00",
              "prefix_cost": "222.01",
              "data_read_per_join": "29K"
            },
            "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 612VIhb2IBL._SL1000_.jpg 1000 1000 N 48842 30881 product 50803 M 0 50803
0 61CrFhUZ1GL._SL1024_.jpg 1024 1024 N 48845 30880 product 50806 M 0 50806
0 61_wzdP-KfL._SL1024_.jpg 1024 1024 N 48852 30879 product 50813 M 0 50813
0 61hxGlHEn4L._SL1000_.jpg 1000 1000 N 48867 30878 product 50828 M 0 50828
0 711-yXa_0wL._SL1430_.jpg 1430 1430 N 48868 30877 product 50829 M 0 50829
0 61_KDsNsZrL._SL1000_.jpg 1000 999 N 48873 30876 product 50834 M 0 50834
0 51zp2HtYIdL._SL1000_.jpg 1000 1000 N 48877 30875 product 50838 M 0 50838
0 61LFfmZpZBL._SL1024_.jpg 1024 1024 N 48878 30874 product 50839 M 0 50839
0 71ARmiu0XQL._SL1000_.jpg 1000 1000 N 48881 30872 product 50842 M 0 50842
0 61gFlvEOZ8L._SL1000_.jpg 1000 1000 N 48883 30870 product 50844 M 0 50844
0 612fv0DMPzL._SL1000_.jpg 1000 1000 N 48885 30869 product 50846 M 0 50846
0 71RP5coScFL._SL1000_.jpg 1000 1000 N 48886 30868 product 50847 M 0 50847
0 714bBfExXjL._SL1024_.jpg 1024 1024 N 48888 30867 product 50849 M 0 50849
0 61WGAaBrBLL._SL1024_.jpg 1024 1024 N 48889 30866 product 50850 M 0 50850
0 51AsXEtBa_L._SL1000_.jpg 1000 1000 N 48890 30865 product 50851 M 0 50851
0 61yFaYkjYaL._SL1000_.jpg 1000 1000 N 48891 30864 product 50852 M 0 50852
0 71wlBERuP1L._SL1000_.jpg 1000 1000 N 49403 30889 product 51364 M 0 51364
0 71Bh-C3UiwL._SL1000_.jpg 1000 1000 N 49405 30888 product 51366 M 0 51366
0 51YQi9T1zSL.jpg 500 500 N 49407 30887 product 51368 M 0 51368
0 51kQVReLBiL._SL1000_.jpg 1000 1000 N 49409 30886 product 51370 M 0 51370
0 71glpY1HwjL._SL1000_.jpg 1000 1000 N 49410 30885 product 51371 M 0 51371
0 51cVjUfUTXL._SL1024_.jpg 1024 1024 N 49413 30884 product 51374 M 0 51374
0 71gvz72oaHL._SL1000_.jpg 1000 1000 N 49414 30883 product 51375 M 0 51375
0 61Ay_VtCmRL._SL1000_.jpg 1000 1000 N 49416 30882 product 51377 M 0 51377
0 61RGIUVJXzL._SL1000_.jpg 1000 1000 N 49581 30895 product 51542 M 0 51542
0 51WKHWIZn2L._SL1000__iuoj-js.jpg 1000 1000 N 49582 30894 product 51543 M 0 51543
0 51uyhingdZL._SL1000_.jpg 1000 1000 N 49584 30893 product 51545 M 0 51545
0 51AnL7W1R4L.jpg 500 500 N 49588 30892 product 51549 M 0 51549
0 5104aawzYQL._SL1000_.jpg 1000 1000 N 49589 30891 product 51550 M 0 51550
0 61tnEvHhX1L._SL1024_.jpg 1024 1024 N 49592 30890 product 51553 M 0 51553
0 61pzb3o6OZL._SL1000_.jpg 1000 1000 N 65522 30871 product 67473 M 0 67473
0 61JE2j2YqJL._SL1000_.jpg 1000 1000 N 48880 30873 product 50841 M 1 50841