You should login with an admin and give the user permissions to the workspaces again.
If you want/need to play with SQL you can assign a user to all workspaces with this query:
INSERT INTO og_project_users
(project_id, user_id, created_on, created_by_id,
can_read_messages, can_write_messages, can_read_tasks, can_write_tasks,
can_read_milestones, can_write_milestones, can_read_files, can_write_files,
can_read_events, can_write_events, can_read_weblinks, can_write_weblinks,
can_read_mails, can_write_mails, can_read_contacts, can_write_contacts,
can_read_comments, can_write_comments, can_assign_to_owners, can_assign_to_other)
SELECT id, <user's id>, '2008-10-21', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 FROM og_projects;
replacing <user's id> with the id of the user you want to have permissions on all workspaces (the admin user's id is 1). You can see all user ids with a:
SELECT id, username FROM og_users;
Bugs can be annoying, huh?