I had the same problem: upgrade your privatemsg module to the newest version. This solved the problem for me.
 
Cheers,
Tibor

 
On 6/14/06, Kaushal Shriyan <kaushalshriyan@gmail.com> wrote:
Hi ALL

I have added a module in the modules folder, I am getting the below error
while login and logout from drupal main page

   * user warning: Duplicate entry '' for key 2 query: INSERT INTO
users (name, pass, init, mail, status, created, uid) VALUES ('',
'6411532ba4971f378391776a9db629d3', '', '', 1, 1150274702, 8) in
/usr/local/apache/htdocs/includes/database.mysql.inc on line 120.
   * warning: array_keys(): The first argument should be an array in
/usr/local/apache/htdocs/modules/user.module on line 349.
   * warning: implode(): Bad arguments. in
/usr/local/apache/htdocs/modules/user.module on line 349.
   * user warning: You have an error in your SQL syntax near ')' at
line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN
permission p ON p.rid = r.rid WHERE r.rid IN () in
/usr/local/apache/htdocs/includes/database.mysql.inc on line 120.

Thanks And Regards

Kaushal
--
[ Drupal support list | http://lists.drupal.org/ ]