and produce_year in(SELECT distinct produce year from benchmarking_index where produce year<= '2022’order by produce year desc limit 5)
改成 and exists ( select * from (SELECT distinct produce_year from benchmarking_index where produce year<= '2022’order by produce year desc limit 5 ) a where a.produce_year=benchmarking_index.produce_year)
试试,没用MYSQL无法验证