This is my index.php where I call my function from index.inc.php The function should give me the open sessions, registered for tasks.
The SELECT is working (tested), but