fix location collection join query to properly support magento 1.12