https://www.php-resource.de/forum/sql-datenbanken/28047-mysql-join-using-oder-on