QuickBug: Fix for 372 duplicate queries not eliminated.