Magento 1.6.1.0 with EcomDev_UrlRewrite by Ivan Chepurnyi.
When saving a product in the admin panel or via php script $product->save() I receive this error: Uncaught exception 'Mage_Core_Exception' with message 'Empty main table name'
I believe it is a issue with EcomDev_UrlRewrite as Oguz has referenced it this post: Magento Admin Panel: Empty main table name