Union query fix

merge results instead of simply concatening them