I'm running v2.6 with Oracle 10 d/b. When I go to view the certificates that have been issued in any course I get the following ( with Developer-level debug on):
Debug info: ORA-00918: column ambiguously defined
SELECT *
FROM (SELECT u.*, ci.code, ci.timecreated
FROM m_user u
INNER JOIN m_certificate_issues ci
ON u.id = ci.userid
WHERE u.deleted = 0
AND ci.certificateid = :o_certificateid
AND NOT u.id IN (:o_cert7,:o_cert8,:o_cert9,:o_cert10,:o_cert11)
ORDER BY MOODLELIB.UNDO_MEGA_HACK(MOODLELIB.TRICONCAT(firstname, '*OCISP*', lastname)) )
WHERE rownum <= :o_oracle_num_rows
[array (
'o_certificateid' => '943',
'o_cert7' => 4968,
'o_cert8' => 257,
'o_cert9' => 114,
'o_cert10' => 192,
'o_cert11' => 86,
'o_oracle_num_rows' => 30,
)]
Error code: dmlreadexception
Stack trace:
line 441 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 271 of /lib/dml/oci_native_moodle_database.php: call to moodle_database->query_end()
line 1122 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->query_end()
line 744 of /mod/certificate/lib.php: call to oci_native_moodle_database->get_records_sql()
line 102 of /mod/certificate/report.php: call to certificate_get_issues()
My SQL go-to person tested the query without 'u.*' and it works fine. I am not a programmer but I greped the files for 'u.*' and the only reference I found was in lib.php.
Any suggestions on what I can do are greatly appreciated.
Thanks