PDOException: SQLSTATE[HY000] [1044] Access denied for user 'learning'@'localhost' to database 'learning_sportday' in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/UserManagerSportday.php(22): Database->__construct('localhost:3306', 'learning_sportd...', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/teacherAddNewStudent.php(55): UserManagerSportday->__construct('localhost:3306', 'learning_sportd...', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 {main}SQLSTATE[42S02]: Base table or view not found: 1146 Table 'learning_etvfun.users' doesn't existSELECT u.id AS id, u.name AS name, u.username AS user_username, u.school AS user_school, u.class AS class, u.age, u.sex, u.student_number FROM users u WHERE u.school = :school AND u.school_year = (SELECT value FROM settings WHERE code = 'current_school_year') AND u.id NOT IN ( SELECT user_id FROM users u2, role_user ru2, roles r2 WHERE u2.id = ru2.user_id AND r2.code IN (:teacherCode0, :teacherCode1) AND ru2.role_id = r2.id AND u2.school = u.school AND u2.class = u.class ) ORDER BY RIGHT(CONCAT('0', u.student_number), 2) learningfun.com.hk