#17947TCE: error message if no label has been set in TCA
Description
A wrong SQL is generated, if you did not set the ctrl label field for a table.
SELECT tx_mytable.uid,tx_mytable.
FROM tx_mytable,pages
WHERE
pages.uid=tx_mytable.pid
AND pages.deleted=0 AND 1=1
This happens when you open a record of this table in the list module.
(issue imported from #M7039)