live and pending entries together not working Craft 3.0.37

I have the following code which I expect to output all entries (live and pending) but it doesn't

&lt;ul&gt;
  {% for entry in craft.entries.section('podcast').status('live','pending').relatedTo(season).orderBy('postDate', 'asc').all() %}
    &lt;li &gt;&lt;span&gt;{{ entry.episodeNumber }}&lt;/span&gt; &lt;a href="{{ entry.url }}"&gt; {{ entry.title }}&lt;/a&gt;&lt;/li&gt;
  {% endfor %}
&lt;/ul&gt;


If I change the status to only pending it outputs pending entries, if live, outputs live. However it will not output both pending and live.

Please advise.
Use status(['live','pending']) to get all entries with both states.

Later, to get the linked entry you need to setup a custom route like `podcasts/{slug}. In the template you query the entry like this:

{% set slug = craft.request.lastSegment() %}
{% set entry = craft.entries.slug(slug).status(['live', 'pending']).one() %}