A Database Error Occurred

Error Number: 3065

Expression #1 of ORDER BY clause is not in SELECT list, references column 'icsemaths_db.u.orders' which is not in SELECT list; this is incompatible with DISTINCT

SELECT DISTINCT(u.id) as id, `u`.`color_code`, `u`.`free_paid`, `u`.`name`, `u`.`slug`, `u`.`marks`, `u`.`time`, `u`.`short_desc`, `u`.`diff_level` FROM `term_exams_test` as `u` WHERE `u`.`delete_flag` = 0 AND `u`.`status` = 1 AND `u`.`course_id` = '3' ORDER BY `u`.`orders` ASC

Filename: controllers/Test_series.php

Line Number: 1005