Discuz! info: MySQL Query Error

Time: 2016-7-30 11:23am
Script: /bbs/viewthread.php

SQL: UPDATE [Table]stats SET count=count+1 WHERE (type='total' AND variable='hits') OR (type='browser' AND variable='Other') OR (type='os' AND variable='Spiders') OR (type='total' AND variable='guests') OR (type='month' AND variable='201607') OR (type='week' AND variable='6') OR (type='hour' AND variable='11')
Error: No database selected
Errno.: 1046

Similar error report has beed dispatched to administrator before.