https://www.php-resource.de/forum/sql-datenbanken/82657-control-flow-functions-in-where-clause