Drupal Association members fund grants that make connections all over the world.
For some reason, $user->uid was used inline in the SELECT statement, and was surrounded by single quotes.
The proper way is to have it as a %d.
Good catch, +1
Committed this to CVS HEAD and DRUPAL-5. Thanks.
Drupal is a registered trademark of Dries Buytaert.