https://www.php-resource.de/forum/sql-datenbanken/86251-subselect-vs-alternative