getRecordInnerJoin updates

Added the ability to use tables in the WHERE clause of the
getRecordInnerJoin method.