Create a loop on my pages with new “WP_Query”

Use the proper parameter. Try this:

$post_ids = array( 50, 53, 56, 58 );
$query = new WP_Query('post__in' => $post_ids );

More info

error code: 523