- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
ARe you sure this has actual results?
->condition('p.id', $pnoQuery, 'IN') ->condition('o.id', $oeQuery, 'IN');
ie if $pnoQuery or $oeQuery are empty, this will likely error. You should check they're not empty before adding the conditions.