The best time to register for DrupalCon Dublin is now. Earlybird discounts end July 29.
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.