Error occurs because with c you are finding the element which is a part of first column in AA. But this element is not the index. So you have to find the index where it is located and then pull out second and third column values.
temp1 = find(A == c);
temp2 = temp1(1,1);