Versuchen Sie Folgendes:
$sql = "SELECT *
FROM albums
WHERE name NOT IN ( '" . implode( "', '" , $ban_album_names ) . "' )";
Versuchen Sie Folgendes:
$sql = "SELECT *
FROM albums
WHERE name NOT IN ( '" . implode( "', '" , $ban_album_names ) . "' )";