$post=new Post(); $post->get_where(array('id'=>$variable_holding_id)); $source=new Source(); $post->where_related($source)->get();