PIM-871 : Fix query to select products already selected