--- modes/binary.inc	2010-06-10 23:11:47.000000000 -0700
+++ modes/binary.inc	(working copy)
@@ -167,7 +167,7 @@ function advpoll_view_results_binary($no
 }
 
 function advpoll_calculate_results_binary(&$cache, $node) {
-  $result = db_query('SELECT uid, vote_source FROM {votingapi_vote} WHERE content_type = "advpoll" AND content_id = %d AND value_type = "option" GROUP BY uid, vote_source, timestamp', $node->nid);
+  $result = db_query("SELECT uid, vote_source FROM {votingapi_vote} WHERE content_type = 'advpoll' AND content_id = %d AND value_type = 'option' GROUP BY uid, vote_source, timestamp", $node->nid);
   $total_votes = 0;
   while ($vote = db_fetch_object($result)) {
     $total_votes++;
