Non-Manifesto exception

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 'AND bm_copy.deleted = 0' at line 1 in /xvar/www/html/readabook.online/mods/core/classes/Connection.php:232 Stack trace: #0 /xvar/www/html/readabook.online/mods/core/classes/Connection.php(232): mysqli->query() #1 /xvar/www/html/readabook.online/mods/core/classes/Oracle.php(1693): Manifesto\Core\Connection->send_sql() #2 /xvar/www/html/readabook.online/site/mods/bookmaker/classes/BookCopyOracle.php(63): Manifesto\Core\Oracle->get_record() #3 /xvar/www/html/readabook.online/site/mods/bookmaker/module_prep.inc(121): dadaTypo\Modules\BookMaker\BookCopyOracle->get_unique_page() #4 /xvar/www/html/readabook.online/index.php(114): include('...') #5 {main}