You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

Error number: 1064

#0 /var/www/html/list.php(102): MySQLDatabase->query('SELECT tags.id ...') #1 {main}
Fatal error: Uncaught exception 'DataBaseException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1' in /var/www/html/lib/MySQLDatabase.class.php:190 Stack trace: #0 /var/www/html/list.php(102): MySQLDatabase->query('SELECT tags.id ...') #1 {main} thrown in /var/www/html/lib/MySQLDatabase.class.php on line 190