diff --git a/priorities.module b/priorities.module
index 346c251..4afb7cc 100755
--- a/priorities.module
+++ b/priorities.module
@@ -1470,7 +1470,7 @@ function priorities_get_priorities_results($survey) {
     // Let's use the filter chosen by the user instead of the default one.
     $output .= '<div id="priorities-description">' . (empty($survey['description']) ? '' : check_markup($survey['description'], $survey['format'], FALSE)) . '</div>';
 
-    $nb_votes = db_result(db_query("SELECT count(*) AS cnt FROM priorities WHERE survey_name='%s' GROUP BY nid ORDER BY cnt DESC LIMIT 1", $survey['survey_name']));
+    $nb_votes = db_result(db_query("SELECT count(*) AS cnt FROM {priorities} WHERE survey_name='%s' GROUP BY nid ORDER BY cnt DESC LIMIT 1", $survey['survey_name']));
     if (!$nb_votes) { $nb_votes = '0'; }
 
     // If anonymous voting is allowed let's display the number of anonymous votes.
@@ -1478,7 +1478,7 @@ function priorities_get_priorities_results($survey) {
       $output .= '<div id="priorities-nb-votes"><p><strong>' . t('Number of casted votes: ') . $nb_votes . '</strong></p></div>'; // add strong.
     }
     else {
-      $nb_votes_anon = db_result(db_query("SELECT count(*) AS cnt FROM priorities WHERE survey_name='%s' AND uid=0 GROUP BY nid ORDER BY cnt DESC LIMIT 1", $survey['survey_name']));
+      $nb_votes_anon = db_result(db_query("SELECT count(*) AS cnt FROM {priorities} WHERE survey_name='%s' AND uid=0 GROUP BY nid ORDER BY cnt DESC LIMIT 1", $survey['survey_name']));
       if (!$nb_votes_anon) { $nb_votes_anon = '0'; }
       $nb_votes_users = $nb_votes - $nb_votes_anon;
       $output .= '<div id="priorities-nb-votes"><p><strong>' . t('Number of casted votes: ') . $nb_votes . '</strong>' . '&nbsp;('. t('Known users: ') . $nb_votes_users . '&nbsp;/&nbsp;' . t('Anonymous: ') .$nb_votes_anon . ')' . '</p></div>'; // add strong.
