SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}Calpe{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}' OR prCity = 'Calpe' OR prZip = 'Calpe' OR prStreet LIKE '{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}Calpe{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}' OR prCountry = 'Calpe') AND (prLocation LIKE '{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}Spain{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}Spain{1e96cceb5a1032ec46be009d24cf3b03fc5dad6c72d27f71c0f105009b8dab5e}' OR prCountry = 'Spain')