Fixed bug with PHP file where parent ACOs weren't recognised