SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}Ornontowice{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}' OR prCity = 'Ornontowice' OR prZip = 'Ornontowice' OR prStreet LIKE '{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}Ornontowice{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}' OR prCountry = 'Ornontowice') AND (prLocation LIKE '{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}Poland{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}' OR prCity = 'Poland' OR prZip = 'Poland' OR prStreet LIKE '{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}Poland{9fae18fae44ad5ab424e01060749472840477ee33c5ad693965a6875411fa02e}' OR prCountry = 'Poland')