Error with WHERE…IN(x,y,z) query with a cartesian product over a maximum size