select o from Pix where pictureCategoriesCollection = ?
és a ? helyére egy new ArrayList<PictureCategories>() vagy más collection ami jó neki