SELECT 
  video_id, 
  GROUP_CONCAT(
    DISTINCT product_id 
    ORDER BY 
      product_id ASC SEPARATOR ', '
  ) as products 
FROM 
  cscart_cp_video_product_links 
WHERE 
  video_id IN (
    2394, 2402, 2385, 2410, 2376, 2377, 2384, 
    2409, 2401, 2393
  ) 
GROUP BY 
  video_id

Query time 0.00038

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.64"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_cp_video_product_links",
        "access_type": "range",
        "possible_keys": [
          "PRIMARY",
          "position",
          "video_id_idx",
          "idx_product_type_position"
        ],
        "key": "video_id_idx",
        "used_key_parts": [
          "video_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 14,
        "rows_produced_per_join": 14,
        "filtered": "100.00",
        "using_index": true,
        "cost_info": {
          "read_cost": "2.24",
          "eval_cost": "1.40",
          "prefix_cost": "3.64",
          "data_read_per_join": "336"
        },
        "used_columns": [
          "video_id",
          "product_id",
          "type"
        ],
        "attached_condition": "(`cscart_db`.`cscart_cp_video_product_links`.`video_id` in (2394,2402,2385,2410,2376,2377,2384,2409,2401,2393))"
      }
    }
  }
}

Result

video_id products
2376 37553
2377 69310
2384 69361
2385 69361
2393 65259
2394 65259
2401 35959
2402 7267
2409 3562, 37830, 67165, 68955, 69309
2410 68909