diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java index e3fc28e6a7..7260ca0e99 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java @@ -208,10 +208,11 @@ public class TravelDbHelper { SQLiteConnection conn = openConnection(); if (conn != null) { TravelArticle travelArticle; - String lang = application.getLanguage(); - SQLiteCursor cursor = conn.rawQuery("SELECT * FROM wikivoyage_articles" - + " WHERE title IN (SELECT title FROM popular_articles WHERE lang = ?" - + " ORDER BY RANDOM()) ORDER BY RANDOM() LIMIT 100", new String[]{lang}); + SQLiteCursor cursor = conn.rawQuery("SELECT * FROM " + + ARTICLES_TABLE_NAME + + " WHERE article_id IN (SELECT article_id FROM " + + ARTICLES_TABLE_NAME + + " ORDER BY RANDOM() LIMIT 100) LIMIT 100", null); if (cursor.moveToFirst()) { do { travelArticle = readArticle(cursor);