Nothing is random
Do you have
vb and photopost in separate databases? If so have you properly filled out the mysql connect and link lines as the file states? In your config-int.php file is the proper prefix for photopost tables entered in there?
Those would be the errors and fixes.