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 (
    '37881', '37882', '37883', '37884', 
    '37885', '37887', '37888', '37889', 
    '37890', '37893', '37895', '37896', 
    '38150', '38151', '38152', '38155'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00103

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "241.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "47.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": 47,
            "rows_produced_per_join": 47,
            "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 ('37881','37882','37883','37884','37885','37887','37888','37889','37890','37893','37895','37896','38150','38151','38152','38155')))",
            "cost_info": {
              "read_cost": "72.41",
              "eval_cost": "9.40",
              "prefix_cost": "81.81",
              "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": 47,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "47.00",
              "eval_cost": "9.40",
              "prefix_cost": "138.21",
              "data_read_per_join": "35K"
            },
            "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": 47,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "47.00",
              "eval_cost": "9.40",
              "prefix_cost": "194.61",
              "data_read_per_join": "27K"
            },
            "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 51U_n6VU6qL._SL1024_.jpg 1024 768 N 63971 37881 product 65927 M 0 65927
0 Paco-Rabanne-Invictus-Deodorant-Spray.jpg 1024 1024 N 63972 37882 product 65928 M 0 65928
0 51TlHc7HhlL._SL1000_.jpg 1000 1000 N 63973 37883 product 65929 M 0 65929
0 71RoTdZceuL._SL1500_.jpg 710 1500 N 63974 37885 product 65930 M 0 65930
0 71YT5GCigJL._SL1500_.jpg 1500 1500 N 63976 37887 product 65932 M 0 65932
0 61bhfQjxAML._SL1500_.jpg 1000 1500 N 63977 37888 product 65933 M 0 65933
0 41BNF2oBlmL.jpg 500 500 N 63978 37889 product 65934 M 0 65934
0 71CP9fs7HoL._SL1500_.jpg 559 1500 N 63979 37884 product 65935 M 0 65935
0 31miLqBbHNL.jpg 500 500 N 63980 37890 product 65936 M 0 65936
0 711tTO_-wyL._SL1500_.jpg 1193 1500 N 63983 37893 product 65939 M 0 65939
0 955452b983fc7bb08fddb15d9acbae8e.png 280 280 N 63995 37895 product 65951 M 0 65951
0 jasper-conran-nightshade-w-edp-12ml-vails.jpg 800 800 N 65805 38152 product 67756 M 0 67756
0 fss-541493.jpg 750 750 N 65810 38155 product 67761 M 0 67761
0 Guerlain-Oud-Essentiel-Unisex-Eau-de-Parfum-EDP.jpg 1175 1600 N 65660 38150 product 67611 M 1 67611
0 jasper-conran-nightshade-m-edt-12ml-vails.jpg 800 800 N 65802 38151 product 67753 M 2 67753
0 Untitled_46we-vi.png 502 505 N 67567 37896 product 69518 M 2 69518