No database selected
select classid,restb from ***_ecms_news where id='40787' limit 1