SELECT u.*, uf.*
  FROM phpwebgallery_users AS u LEFT JOIN phpwebgallery_user_forbidden AS uf
    ON id = user_id
  WHERE u.id = 2
;
[mysql error 1034] Incorrect key file for table 'phpwebgallery_users'; try to repair it