select * from ANI where aniIndex = 250 and ani = '9404471111'; select aniIndex from ANumber where aNumIndex = 250 limit 1; select * from ANI_NPANXX where aniIndex=250 and (aniNPANXX = '940' or aniNPANXX = '922') order by aniNPANXX limit 1;