SELECT 
  cscart_images_links.*, 
  cscart_images.image_path, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_x, 
  cscart_images.image_y, 
  cscart_images.image_id as images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.image_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'ro' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    507029, 1587021, 359010, 363089, 431485, 
    435102, 673234, 796340, 435126, 291580, 
    2045191, 671448, 2071779, 1440614, 
    1080125, 1302583
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00279

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "299.38"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "65.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_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": 65,
            "rows_produced_per_join": 65,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (507029,1587021,359010,363089,431485,435102,673234,796340,435126,291580,2045191,671448,2071779,1440614,1080125,1302583)))",
            "cost_info": {
              "read_cost": "85.32",
              "eval_cost": "6.50",
              "prefix_cost": "91.82",
              "data_read_per_join": "6K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "3",
            "ref": [
              "maniamall_cscart.cscart_images_links.image_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 65,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "64.87",
              "eval_cost": "6.50",
              "prefix_cost": "163.19",
              "data_read_per_join": "49K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "maniamall_cscart.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 65,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "64.69",
              "eval_cost": "6.50",
              "prefix_cost": "234.39",
              "data_read_per_join": "38K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

pair_id object_id object_type image_id detailed_id type position image_path alt image_x image_y images_image_id
446315 291580 product 0 446552 A 0
446316 291580 product 0 446553 A 0
446317 291580 product 0 446554 A 0
446318 291580 product 0 446555 A 0
446319 291580 product 0 446556 A 0
566727 363089 product 0 566964 A 0
678273 431485 product 0 678510 A 0
678274 431485 product 0 678511 A 0
691495 435102 product 0 691732 A 0
691496 435102 product 0 691733 A 0
804215 507029 product 0 804452 A 0
804216 507029 product 0 804453 A 0
804217 507029 product 0 804454 A 0
1050618 671448 product 0 1050855 A 0
1050619 671448 product 0 1050856 A 0
1050620 671448 product 0 1050857 A 0
1050621 671448 product 0 1050858 A 0
1050622 671448 product 0 1050859 A 0
1050623 671448 product 0 1050860 A 0
1050624 671448 product 0 1050861 A 0
1050625 671448 product 0 1050862 A 0
1054637 673234 product 0 1054874 A 0
1054638 673234 product 0 1054875 A 0
1054639 673234 product 0 1054876 A 0
1054640 673234 product 0 1054877 A 0
1054641 673234 product 0 1054878 A 0
1054642 673234 product 0 1054879 A 0
1054643 673234 product 0 1054880 A 0
1054644 673234 product 0 1054881 A 0
1054645 673234 product 0 1054882 A 0
1214893 796340 product 0 1215130 A 0
1214894 796340 product 0 1215131 A 0
1214895 796340 product 0 1215132 A 0
1214896 796340 product 0 1215133 A 0
1214897 796340 product 0 1215134 A 0
1214898 796340 product 0 1215135 A 0
1214899 796340 product 0 1215136 A 0
1214900 796340 product 0 1215137 A 0
1670015 1080125 product 0 1670253 A 0
1670016 1080125 product 0 1670254 A 0
1670017 1080125 product 0 1670255 A 0
1670018 1080125 product 0 1670256 A 0
2119766 1302583 product 0 2120018 A 0
2119767 1302583 product 0 2120019 A 0
2667582 1440614 product 0 2667835 A 0
2667583 1440614 product 0 2667836 A 0
2667584 1440614 product 0 2667837 A 0
2667585 1440614 product 0 2667838 A 0
2667586 1440614 product 0 2667839 A 0
2667587 1440614 product 0 2667840 A 0
3436937 1587021 product 0 3437190 A 0
3436938 1587021 product 0 3437191 A 0
3436939 1587021 product 0 3437192 A 0
3436940 1587021 product 0 3437193 A 0
3436941 1587021 product 0 3437194 A 0
4868554 2045191 product 0 4868807 A 0
4868555 2045191 product 0 4868808 A 0
4868557 2045191 product 0 4868810 A 0
4868558 2045191 product 0 4868811 A 0
4981579 2071779 product 0 4981832 A 0
4981580 2071779 product 0 4981833 A 0
4981581 2071779 product 0 4981834 A 0
4981582 2071779 product 0 4981835 A 0