fixed the problem that causes ItemDataException in the calculation of inner join.

The root cause is missing of code to calculate the column index
for joined tables. This patch makes SQLTableFormula have the
table size information and add code to the appropriate index
from that information.