SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}Sofia{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}' OR prCity = 'Sofia' OR prZip = 'Sofia' OR prStreet LIKE '{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}Sofia{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}' OR prCountry = 'Sofia') AND (prLocation LIKE '{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}Bulgaria{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}' OR prCity = 'Bulgaria' OR prZip = 'Bulgaria' OR prStreet LIKE '{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}Bulgaria{6bc229790c62c9cae6254e39c2201c929fdbd71512929ebd52061ee0d0db4bd3}' OR prCountry = 'Bulgaria')