$record = DataObject::get('Subdomain',"Subdomain='$subdomain' AND Status=1");
echo 'data=' . $record->ID;
The above code returns nothing, although
displays a full recordset as expected.
How do I access individual values from the recordset returned by DataObject::get? I have tried every field name available for the above object. None display anything despite there being data in the recordset.