#30486Typoscript select join broken
Description
The solution to #17284 has unwanted side effects.
You can find the following code in line 7421 in file typo3/sysext/cms/tslib/class.tslib_content.php
$queryParts['SELECT'] .= ',uid,pid';
If selecFields is set, any select query gets ‘,uid,pid’ added. This breaks any typoscript join. When using a two tables join and the bare column ‘uid’ is added to field list, it is always ambiguous and results in a mysql error.
This might be relevant to other releases to (4.6, 4.5, 4.4), because the patch was applied there as well.