diff options
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-x | classes/feeds.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index c3a2098b5..815673491 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -1460,7 +1460,9 @@ class Feeds extends Handler_Protected { } if (DB_TYPE == "pgsql") { - $test_sth = $pdo->prepare("select $search_query_part from ttrss_entries limit 1"); + $test_sth = $pdo->prepare("select $search_query_part + FROM ttrss_entries, ttrss_user_entries WHERE id = ref_id limit 1"); + try { $test_sth->execute(); } catch (PDOException $e) { |