MySQL Query Error

Script:

SQL: SELECT x.title,n.content FROM xinwen x LEFT JOIN neirong n ON x.id=n.id WHERE x.cid='448' AND x.sid='249' AND x.state='1' ORDER BY x.addtime ASC

MySQL server error:
No database selected ( 1046 )