https://www.php-resource.de/forum/sql-datenbanken/99334-subclause-in-from-query