Bug in detection of "first" table being joined to when needsRecordTable
= false.