Fixed bug in buildCompositeWhere
-ININ.