Make new var for CTE RTE to have join succeed