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 (
    '51099', '51098', '51095', '51094', 
    '51093', '51092', '51078', '51069', 
    '51064', '51058', '51043', '51042', 
    '51037', '51036', '51029', '51008'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00129

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 ('51099','51098','51095','51094','51093','51092','51078','51069','51064','51058','51043','51042','51037','51036','51029','51008')))",
            "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 69b226d88c28149af4cdb3a54ed57f19.jpg 700 600 N 87383 51008 product 86765 M 0 86765
0 piaomamenwristwatchw-1000x1000.jpg 1000 1000 N 87421 51029 product 86803 M 0 86803
0 6-1.jpg 640 640 N 87438 51036 product 86820 M 0 86820
0 7-1.jpg 640 640 N 87441 51037 product 86823 M 0 86823
0 8-1.jpg 640 640 N 87453 51042 product 86835 M 0 86835
0 9-1.jpg 640 640 N 87456 51043 product 86838 M 0 86838
0 10_1h6y-ax.jpg 640 640 N 87494 51058 product 86876 M 0 86876
0 20-07-19-11-33-Digi-Rd-535x401.jpeg 535 401 N 87501 51064 product 86883 M 0 86883
0 1-1_b8cv-yn.jpg 640 640 N 87539 51078 product 86921 M 0 86921
0 10-_gc8n-wf.jpg 640 640 N 87577 51092 product 86959 M 0 86959
0 12-1.jpg 640 640 N 87578 51093 product 86960 M 0 86960
0 edad5f4bc6a682d8a9fde0b4b847e963.jpg 640 640 N 87579 51094 product 86961 M 0 86961
0 21-06-21-08-40-2zistar-540x540.jpeg 540 540 N 87582 51095 product 86964 M 0 86964
0 UTB8aZtCFarFXKJk43Ovq6ybnpXa8.jpg 400 400 N 87585 51098 product 86967 M 0 86967
0 3-1_hfdg-jn.jpg 640 640 N 87587 51099 product 86969 M 0 86969
0 ea9670af68b2782badd0be9849a29ae4.jpg 1001 1001 N 87513 51069 product 86895 M 1 86895