SQL-Statement in shared/index.php fixed