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_type_a.php(28): MyPDO->query('SELECT video.Mo...') #1 {main} thrown in /home/mmovie/public_html/include/mydb.php on line 47