Upgrade Fix from 4.4 to 4.5

The query is removed as per issue no CRM-14181