Access denied for user ''@'localhost' (using password: NO)

SQL Query:
select * from mainmenu where top =1 order by level