Fatal error: Call to a member function getId() on a non-object in /srv/magento/current/app/code/core/Mage/Catalog/Model/Resource/Abstract.php on line 117