Update getCompareQuery.php

fixed single tuple bug