Warning: Undefined variable $sort (File: func.items.php, Line: 148)

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 100' at line 6 in /usr/local/www/data/la2hell/htdocs/common/classes/DataBase.php:56 Stack trace: #0 /usr/local/www/data/la2hell/htdocs/common/classes/DataBase.php(56): mysqli_query(Object(mysqli), 'SELECT *\n\tFROM ...') #1 /usr/local/www/data/la2hell/htdocs/scripts/func.items.php(144): DataBase->query('SELECT *\n\tFROM ...') #2 /usr/local/www/data/la2hell/htdocs/index.php(50): require_once('/usr/local/www/...') #3 {main} thrown in /usr/local/www/data/la2hell/htdocs/common/classes/DataBase.php on line 56