The database select command requires that the database is called "drupal".

<?php
   $result = db_query('SELECT uid,name,mail FROM drupal.users');
?>

Changing row 157 to this fixes the problem:

<?php
   $result = db_query('SELECT uid,name,mail FROM users');
?>

Comments

beginner’s picture

Assigned: Unassigned » beginner
Status: Active » Fixed

Actually it should be:

   $result = db_query('SELECT uid,name,mail FROM {users}');

fixed in D5 and HEAD.
Thanks for reporting.

Anonymous’s picture

Status: Fixed » Closed (fixed)