Use a real function for advanced parent queries so we are PHP 5.2 compatible

@joehoyle could I get a quick review/merge on this, need PHP 5.2 compat for Yell.