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