Error reading from database Debug info: SQLState: 42S22
Error Code: 207
Message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'timecreated'.
SELECT q.* FROM (SELECT TOP 9223372036854775806 ROW_NUMBER() OVER(ORDER BY timecreated DESC) AS sqlsrvrownumber, q.* FROM (SELECT u.id, u.picture, u.firstname, u.lastname, u.imagealt, u.email, c.id AS cid, c.content AS ccontent, c.format AS cformat, c.timecreated AS ctimecreated FROM mdl_comments c JOIN mdl_user u ON u.id = c.userid WHERE c.contextid = '2' AND c.commentarea = N'page_comments' AND c.itemid = '0' ) AS q) AS q WHERE q.sqlsrvrownumber > 0 AND q.sqlsrvrownumber <= 15 [array ( 0 => '2', 1 => 'page_comments', 2 => 0, )] Stack trace: line 391 of \lib\dml\moodle_database.php: dml_read_exception thrown line 252 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end() line 363 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end() line 761 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query() line 417 of \comment\lib.php: call to sqlsrv_native_moodle_database->get_recordset_sql() line 593 of \comment\lib.php: call to comment->get_comments() line 342 of \comment\lib.php: call to comment->print_comments() line 54 of \blocks\comments\block_comments.php: call to comment->output() line 280 of \blocks\moodleblock.class.php: call to block_comments->get_content() line 232 of \blocks\moodleblock.class.php: call to block_base->formatted_contents() line 895 of \lib\blocklib.php: call to block_base->get_content_for_output() line 947 of \lib\blocklib.php: call to block_manager->create_block_contents() line 342 of \lib\blocklib.php: call to block_manager->ensure_content_created() line 4 of \theme\serenity\layout\frontpage.php: call to block_manager->region_has_content() line 647 of \lib\outputrenderers.php: call to include() line 605 of \lib\outputrenderers.php: call to core_renderer->render_page_layout() line ? of unknownfile: call to core_renderer->header() line 1229 of \lib\setuplib.php: call to call_user_func_array() line 89 of \index.php: call to bootstrap_renderer->__call() line 89 of \index.php: call to bootstrap_renderer->header()