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 '-20, 20' at line 6 in /volume1/web/web/dblibrary/search_books.php on line 66 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 '-20, 20' at line 6 in /volume1/web/web/dblibrary/search_books.php on line 66 Call Stack: 0.0000 359144 1. {main}() /volume1/web/web/dblibrary/search_books.php:0 0.0024 420144 2. mysqli->query($query = 'SELECT b.id, b.book_name, b.author, b.publisher, b.call_number, b.bar_code, b.isbn, b.bookshelf, b.introduction, b.status\r\n FROM books b\r\n JOIN language_category lc ON b.language_category_id = lc.id\r\n JOIN category c ON b.category_id = c.id\r\n JOIN readership r ON b.readership_id = r.id\r\n WHERE 1=1 AND b.category_id = 5 ORDER BY RAND() LIMIT -20, 20') /volume1/web/web/dblibrary/search_books.php:66