SELECT * FROM student WHERE `class`>0 AND `cl_id` NOT LIKE 'XNEW%' ORDER BY class,cl_id,name