Update getCompareQuery.php