SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}La{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCity = 'La' OR prZip = 'La' OR prStreet LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}La{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCountry = 'La') AND (prLocation LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}Marina{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCity = 'Marina' OR prZip = 'Marina' OR prStreet LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}Marina{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCountry = 'Marina') AND (prLocation LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}Spain{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}Spain{859c5e0f4e4c99b12706ae5f6a66700ea43efe6b9c66c18dc5ff5081786f6efd}' OR prCountry = 'Spain')