skip to Main Content

Unknown column in 'on clause' – tried both where and having conditions but same error – Phpmyadmin

SELECT hh_podcast_channel.id FROM hh_podcast_channel inner JOIN ( SELECT hh_podcast_episodes.podcast_id, ROW_NUMBER() OVER(PARTITION BY hh_podcast_episodes.id ORDER BY hh_podcast_episodes.published_on) as rn FROM hh_podcast_episodes ) as t2 ON hh_podcast_channel.id = hh_podcast_episodes.podcast_id having t2.rn = 1 #1054 - Unknown column 'hh_podcast_episodes.podcast_id' in 'on clause'

VIEW QUESTION
Back To Top
Search