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