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