Click the link "Batch Manager" from the sidebar of the admin panel.
Expected behavior
Load the Batch Manager.
Actual results
Warning: [mysql error 1064] 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 3
## Environment
Piwigo 2.10.1
Operating system: Linux
PHP: 7.3.11-1~deb10u1
MySQL: 5.5.5-10.3.18-MariaDB-0+deb10u1
Graphics Library: ImageMagick 6.9.10-23
## How to reproduce
Click the link "Batch Manager" from the sidebar of the admin panel.
## Expected behavior
Load the Batch Manager.
## Actual results
```
Warning: [mysql error 1064] 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 3
```
```sql
SELECT COUNT(*)
FROM categories
WHERE id =
; in /var/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 856
Fatal error: Uncaught Error: Call to a member function fetch_row() on bool in /var/www/piwigo/include/dblayer/functions_mysqli.inc.php:225 Stack trace: #0 /var/www/piwigo/admin/batch_manager.php(476): pwg_db_fetch_row(false) #1 /var/www/piwigo/admin.php(309): include('/var/www/piwigo...') #2 {main} thrown in /var/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 225
```
<!-- github-sync-id:533915307 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Environment
Piwigo 2.10.1
Operating system: Linux
PHP: 7.3.11-1~deb10u1
MySQL: 5.5.5-10.3.18-MariaDB-0+deb10u1
Graphics Library: ImageMagick 6.9.10-23
How to reproduce
Click the link "Batch Manager" from the sidebar of the admin panel.
Expected behavior
Load the Batch Manager.
Actual results