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 (
    '8610', '8611', '8612', '8613', '8614', 
    '8615', '8618', '8619', '8620', '8621', 
    '8629', '8632', '8633', '8634', '8635', 
    '8636'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00140

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "92.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "16.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": 16,
            "rows_produced_per_join": 16,
            "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 ('8610','8611','8612','8613','8614','8615','8618','8619','8620','8621','8629','8632','8633','8634','8635','8636')))",
            "cost_info": {
              "read_cost": "35.21",
              "eval_cost": "3.20",
              "prefix_cost": "38.41",
              "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "3.20",
              "prefix_cost": "57.61",
              "data_read_per_join": "12K"
            },
            "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": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "3.20",
              "prefix_cost": "76.81",
              "data_read_per_join": "9K"
            },
            "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 512qf45-4sL.jpg 500 500 N 18028 8610 product 19990 M 0 19990
0 51ljZlwZmiL.jpg 500 500 N 18032 8611 product 19994 M 0 19994
0 51Tfe71PNZL.jpg 500 500 N 18035 8612 product 19997 M 0 19997
0 51XFRnPkQBL.jpg 500 500 N 18037 8613 product 19999 M 0 19999
0 51TvtJe1NAL.jpg 500 500 N 18041 8614 product 20003 M 0 20003
0 413andkrRYL.jpg 500 500 N 18042 8615 product 20004 M 0 20004
0 41ewwIM6u5L.jpg 335 500 N 18047 8618 product 20009 M 0 20009
0 41ol1L57Q1L.jpg 500 500 N 18048 8619 product 20010 M 0 20010
0 41-Oxu8GhDL.jpg 500 500 N 18049 8620 product 20011 M 0 20011
0 417njbof5AL.jpg 395 500 N 18051 8621 product 20013 M 0 20013
0 51yFStSurYL.jpg 500 500 N 18062 8629 product 20024 M 0 20024
0 415wyKdktzL.jpg 500 500 N 18065 8632 product 20027 M 0 20027
0 510wUOb6-bL.jpg 500 500 N 18067 8633 product 20029 M 0 20029
0 51CwgwAL_hL.jpg 500 500 N 18069 8634 product 20031 M 0 20031
0 41kzIYQUURL.jpg 500 500 N 18072 8635 product 20034 M 0 20034
0 51IFBBLyWhL.jpg 500 500 N 18077 8636 product 20039 M 0 20039