SELECT DISTINCT
  ld.n_ens 
FROM
  stat_header h,
  line_data_relp ld
WHERE
     BINARY h.fcst_var IN ('apcp01')
  AND h.stat_header_id = ld.stat_header_id;

