I'm trying to create a query that will select one item for first category, two items for second and 2 items for third category, for others just one item.
The problem is it has to be one query. I think this is possible but I just can't figure it out.