this relates to
MDLQA-218. test stage 2 failed. assignment (single file upload) activity added and submitted ok, but fails when logged in teacher clicks the 'View n submitted assignments' link.
moodle preview 4 build 201000905
error dialogue reads: error reading from database. developer debugging info as follows:
Debug info: Unknown column 'Array' in 'where clause'
s.id AS submissionid, s.grade, s.submissioncomment,
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid
AND s.assignment = 1 WHERE Array AND u.id IN (4) ORDER BY lastname ASC
line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 732 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1289 of /mod/assignment/lib.php: call to mysqli_native_moodle_database->get_records_sql()
line 632 of /mod/assignment/lib.php: call to assignment_base->display_submissions()
line 56 of /mod/assignment/submissions.php: call to assignment_base->submissions()