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.
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.