Exception error on CPM ROQL query
Content
I am getting an exception error on the following line in testing of a CPM and I cannot see what is wrong. Can anyone identify what might be causing it? (error message attached). I have used similar code before without issue. We have recently upgraded to version 17D though.
$activelog = RNCPHP\ROQL::queryObject("SELECT SCBS_SUP.Lifecycle FROM SCBS_SUP.Lifecycle WHERE Active = 1 AND Supporter=".$Lifecycle->Supporter->ID)->next();
Version
Service Cloud 17D0