No database selected

ERROR QUERY(1046) :
select * from basic_analyst_list where code='818' and price_YN='Y' and yn ='Y'