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