Debug info: 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 'order by id desc limit 10' at line 1
SELECT * FROM mdl_post WHERE module = "blog" and slug != "" and publishstate = "public" and id != order by id desc limit 10;
[array (
)]
Error code: dmlreadexception
SELECT * FROM mdl_post WHERE module = "blog" and slug != "" and publishstate = "public" and id != order by id desc limit 10;
[array (
)]
Error code: dmlreadexception
Stack trace:
- line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 1273 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 315 of /blog/post/index.php: call to mysqli_native_moodle_database->get_records_sql()