SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Planegg{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCity = 'Planegg' OR prZip = 'Planegg' OR prStreet LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Planegg{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCountry = 'Planegg') AND (prLocation LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}-{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCity = '-' OR prZip = '-' OR prStreet LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}-{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCountry = '-') AND (prLocation LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Martinsried{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCity = 'Martinsried' OR prZip = 'Martinsried' OR prStreet LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Martinsried{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCountry = 'Martinsried') AND (prLocation LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Germany{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}Germany{254a63606e94e0d6824d03169b00e1a7c36d1f12f71c4606336bc623fc6272d8}' OR prCountry = 'Germany')