Fatal error: Uncaught Error: Call to a member function query() on null in /home/mmovie/public_html/include/mydb.php:47 Stack trace: #0 /home/mmovie/public_html/movie_director_v2.php(13): MyPDO->query('SELECT * FROM D...') #1 {main} thrown in /home/mmovie/public_html/include/mydb.php on line 47