SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}Каблешково{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}' OR prCity = 'Каблешково' OR prZip = 'Каблешково' OR prStreet LIKE '{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}Каблешково{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}' OR prCountry = 'Каблешково') AND (prLocation LIKE '{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}Bulgaria{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}' OR prCity = 'Bulgaria' OR prZip = 'Bulgaria' OR prStreet LIKE '{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}Bulgaria{97d134712ec7f8d8f859776ed1b89d4317a7bda895465f602cf48ac45681dd42}' OR prCountry = 'Bulgaria')