diff --git a/votingapi.module b/votingapi.module
index 6585792..2daba49 100644
--- a/votingapi.module
+++ b/votingapi.module
@@ -208,7 +208,8 @@ function votingapi_votingapi_storage_delete_votes($votes, $vids) {
 function votingapi_votingapi_storage_select_votes($criteria, $limit) {
   $query = db_select('votingapi_vote')->fields('votingapi_vote');
   foreach ($criteria as $key => $value) {
-    $query->condition($key, $value, is_array($value) ? 'IN' : '=');
+    $operator = ($key == 'timestamp') ? '>' : NULL;
+    $query->condition($key, $value, $operator);
   }
   if (!empty($limit)) {
     $query->range(0, $limit);
@@ -343,7 +344,7 @@ function votingapi_delete_results($vote_results = array()) {
  *   An array of votes matching the criteria.
  */
 function votingapi_select_votes($criteria = array(), $limit = 0) {
-  $anon_window = variable_get('votingapi_anonymous_window', 3600);
+  $anon_window = variable_get('votingapi_anonymous_window', 86400);
   if (!empty($criteria['vote_source']) && $anon_window >= 0) {
     $criteria['timestamp'] = REQUEST_TIME - $anon_window;
   }
