Including ‘wp-load.php’ after another include() generates an error

A different way of fixing it:

function load_wp(){
    global $wpdb;
    include_once('wp-load.php');
}