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