SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}San{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCity = 'San' OR prZip = 'San' OR prStreet LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}San{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCountry = 'San') AND (prLocation LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}Javier{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCity = 'Javier' OR prZip = 'Javier' OR prStreet LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}Javier{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCountry = 'Javier') AND (prLocation LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}Spain{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}Spain{24bf85ca3e5e3c9223be0407d285b76768ff5a1d2905ff7948ca7286f4635791}' OR prCountry = 'Spain')