v.22.6Bug Fix

Fix Errors from Constant String Clash in Aggregate Functions

Fix unexpected errors with a clash of constant strings in aggregate function, prewhere and join. Close #36891. #37336 (Vladimir C).