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