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