SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Cala{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCity = 'Cala' OR prZip = 'Cala' OR prStreet LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Cala{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCountry = 'Cala') AND (prLocation LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Major{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCity = 'Major' OR prZip = 'Major' OR prStreet LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Major{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCountry = 'Major') AND (prLocation LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Spain{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}Spain{1945223e5668415a11aec54c1bb2e7dd7d911b6053602c801a851ee7fa63bf62}' OR prCountry = 'Spain')