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