You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by c.onclick desc limit 0,9' at line 1
select c.id,c.title from ***_ecms_course as c left join ***_ecms_course_index as ci on ci.id=c.id where ci.checked=1 and c.classid in (48,) order by c.onclick desc limit 0,9