SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}Wallenhorst{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}' OR prCity = 'Wallenhorst' OR prZip = 'Wallenhorst' OR prStreet LIKE '{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}Wallenhorst{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}' OR prCountry = 'Wallenhorst') AND (prLocation LIKE '{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}Germany{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}Germany{66caecd435122dc751b9919d723ca2a41fe0ac2cfcb938f6d3bf4a2febf22bf6}' OR prCountry = 'Germany')