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 (
    '13142', '13143', '13144', '13146', 
    '13147', '13150', '13151', '13152', 
    '13153', '13154', '13155', '13156', 
    '13157', '13158', '13159', '13160'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00142

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 ('13142','13143','13144','13146','13147','13150','13151','13152','13153','13154','13155','13156','13157','13158','13159','13160')))",
            "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 7dcbd03ecf502374d1773e7d1d0597dc.jpg 700 600 N 26943 13142 product 28905 M 0 28905
0 77d085458b4fdcc6906b38939c7457d7.jpg 700 600 N 26944 13143 product 28906 M 0 28906
0 3ce9a7b82c32da0650d4baf9aaafef43.jpg 700 600 N 26945 13144 product 28907 M 0 28907
0 065caefb8a3ab250531e3ff3f8fcdccf.jpg 700 600 N 26948 13147 product 28910 M 0 28910
0 363daf83c3d0a61af6abe7e807e2c814.jpg 700 600 N 26952 13151 product 28914 M 0 28914
0 4cd34464f5f2008069bf11d639a81a12.jpg 700 600 N 26953 13152 product 28915 M 0 28915
0 408701d9d000fd05e6a94532fbbee852.jpg 700 600 N 26954 13153 product 28916 M 0 28916
0 fb6dadca9c08422e0b8376a7761382cb.jpg 700 600 N 26955 13154 product 28917 M 0 28917
0 db51db1bb093482e823d8e08491b3f19.jpg 700 600 N 26956 13155 product 28918 M 0 28918
0 31DLJ79zxLL.jpg 390 390 N 26957 13156 product 28919 M 0 28919
0 8f79e9235b188213a6e5b64225b4b7ec.jpg 700 600 N 26958 13157 product 28920 M 0 28920
0 item_XL_8055559_7419380.jpg 453 600 N 26959 13158 product 28921 M 0 28921
0 blob__30141.1467636374.1280.720.pngc-2.png 500 529 N 26960 13159 product 28922 M 0 28922
0 Casio-for-Women-Analog-LTP-1128N-9ARDF-Stainless-Steel-Watch.jpg 800 800 N 26961 13160 product 28923 M 0 28923
0 .jpg 500 600 N 30718 13146 product 32680 M 0 32680
0 b7e6e17664635b2d49ad9c2a47fa2e2b.jpg 700 600 N 85109 13150 product 29063 M 0 29063