Use COALESCE to apply dynamic radius to each user
->having('distance', '<', DB::raw('COALESCE(radius, ' . $radius . ')'))