Fixed broken query from upgrade to OC 2.0.1