use old;
SELECT `firstname`,
`middlname`,
`lastname`,
`age`,
`phone1`,
`phone2`,
`town`
FROM profil WHERE `town` BETWEEN 4 AND 14
AND `age` BETWEEN 64 AND 99
AND (phone1 LIKE '+7495%' OR phone1 LIKE '+7499%' OR phone1 LIKE '+7812%')
AND (phone2 LIKE '+7495%' OR phone2 LIKE '+7499%' OR phone2 LIKE '+7812%')