Getting these error in Admin user, when i switch on debugging

Re: Getting these error in Admin user, when i switch on debugging

by Gregor McNish -
Number of replies: 0
Picture of Particularly helpful Moodlers
If you look at your theme code
line 38 of /theme/abc/layout/drawers.php: call to mysqli_native_moodle_database->get_records_sql()
There will be an sql query just before it-- make sure the first column referenced in the query is unique -- currently it seems that the role name is the first column. Maybe change to username or something that will be unique depending on what the query is doing.
.