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