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.image_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 (
    '393', '394', '395', '396', '397', '398', 
    '399', '400', '401', '402', '403', 
    '404', '405', '406', '407', '408', 
    '409', '410', '411', '412', '413', 
    '414', '415', '416', '417', '418', 
    '419', '420', '421', '263'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00139

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "246.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "45.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": 45,
            "rows_produced_per_join": 45,
            "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 ('393','394','395','396','397','398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413','414','415','416','417','418','419','420','421','263')))",
            "cost_info": {
              "read_cost": "84.01",
              "eval_cost": "9.00",
              "prefix_cost": "93.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.image_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 45,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "45.00",
              "eval_cost": "9.00",
              "prefix_cost": "147.01",
              "data_read_per_join": "34K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": 45,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "45.00",
              "eval_cost": "9.00",
              "prefix_cost": "201.01",
              "data_read_per_join": "26K"
            },
            "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 548 263 product 2525 M 0
0 805 393 product 2782 M 0
0 807 394 product 2784 M 0
0 809 395 product 2786 M 0
0 811 396 product 2788 M 0
0 813 397 product 2790 M 0
0 815 398 product 2792 M 0
0 817 399 product 2794 M 0
0 819 400 product 2796 M 0
0 821 401 product 2798 M 0
0 823 402 product 2800 M 0
0 825 403 product 2802 M 0
0 827 404 product 2804 M 0
0 829 405 product 2806 M 0
0 831 406 product 2808 M 0
0 832 407 product 2809 M 0
0 834 408 product 2811 M 0
0 836 409 product 2813 M 0
0 838 410 product 2815 M 0
0 840 411 product 2817 M 0
0 842 412 product 2819 M 0
0 844 413 product 2821 M 0
0 845 414 product 2822 M 0
0 846 415 product 2823 M 0
0 847 416 product 2824 M 0
0 848 417 product 2825 M 0
0 849 418 product 2826 M 0
0 850 419 product 2827 M 0
0 851 420 product 2828 M 0
0 56479 421 product 58440 M 0