LAST ITEM
which is equal to 1, that means I would like to analyse all brand collections and show items from on the list that were left very last and single. The size is not important, it should be last item from each brand listed. For example, brown pants are coming from brand "Mama b." and there are only one last left in size 38. We can see, it's making a mistake by selection brown pants 1 in size 36, 1 in size 40, 1 in size 52. How to change a way of analysis?