Fixed incorrect usage of the ternary operator in amazon/listing.php

Fixed the Empty Query error.