SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Bad{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Bad{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCountry = 'Bad') AND (prLocation LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Lobenstein{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCity = 'Lobenstein' OR prZip = 'Lobenstein' OR prStreet LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Lobenstein{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCountry = 'Lobenstein') AND (prLocation LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Germany{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}Germany{5d0c8d51edb2be6db8389e5f9d930fcbfc82a8ecbe53e312a8c72a0cdf4feef0}' OR prCountry = 'Germany')