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