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