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

Query:
SELECT a.id AS action, p.actions AS actionmap FROM cyoa_map_actions AS a INNER JOIN cyoa_permissions AS p ON p.usergroup = 0 WHERE a.desc = 'ADMIN'