Oscommerce giving 1054 error on account transfer?

Sometimes, after a website or account transfer, my OSCommerce gives me a 1054 – Unknown column 'p.products_id' in 'on clause' error when browsing your products or when using the search tool in the browser.
Why does it happens?
