SELECT @facility_id := `facility_id`, `id` FROM mst_system_settings WHERE end_date IS NULL LIMIT 1;