SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}Karpaz{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}' OR prCity = 'Karpaz' OR prZip = 'Karpaz' OR prStreet LIKE '{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}Karpaz{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}' OR prCountry = 'Karpaz') AND (prLocation LIKE '{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}Cyprus{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}' OR prCity = 'Cyprus' OR prZip = 'Cyprus' OR prStreet LIKE '{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}Cyprus{581dac259db2b3a85134b8e0865162b76dd8947972405fe80a3e66bf7f3d3558}' OR prCountry = 'Cyprus')