--- user_karma.module	2008-01-13 07:58:07.000000000 +0800
+++ user_karma.module	2008-01-16 17:42:39.000000000 +0800
@@ -462,7 +462,7 @@ function user_karma_cron(){
       // over the time when a karma vote is valid for. So, if a person has
       // received a vote over the last 2 weeks and a vote lasts 2 months, the
       // recalculation won't be done. This will sieve out a few users.
-      $query="SELECT u.uid from users u left join votingapi_cache vc ON u.uid = vc.content_id WHERE vc.content_type = 'user' AND ".user_karma_sql_duration('vc.timestamp', '<');
+      $query = "SELECT u.uid FROM {users} u LEFT JOIN {votingapi_cache} vc ON u.uid = vc.content_id WHERE vc.content_type = 'user' AND ". user_karma_sql_duration('vc.timestamp', '<');
       #drupal_set_message("QUERY: $query");
       $result=db_query($query);
       while ($u = db_fetch_object($result)) {
