use join query for tag search