MySQL Query Error

Script:

SQL: SELECT COUNT(*) FROM xinwen WHERE cid='444' AND state='1'

MySQL server error:
No database selected ( 1046 )