Fatal error: Uncaught mysqli_sql_exception: 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 ') AND ((PicturesMain.Scanned)<>0) AND ((PicturesMain.PictureType)='stamp'))
...' at line 3 in /var/www/html/includes/class/PagedResults.php:44
Stack trace:
#0 /var/www/html/includes/class/PagedResults.php(44): mysqli->prepare()
#1 /var/www/html/photos/PicturesSummary.php(103): PagedResults->__construct()
#2 {main}
thrown in /var/www/html/includes/class/PagedResults.php on line 44