If you'd prefer, this could change to be a single statement:
```PHP
$sqlQuery .= "WHERE membership_id <> '" . $current_user->membership_level->ID . "' AND page_id NOT IN (SELECT page_id FROM $wpdb->pmpro_membership_pages WHERE membership_id = '" . $current_user->membership_level->ID . "'
```