Notice: Trying to access array offset on value of type bool in /home/u482956964/public_html/app/controller/blog-categories.php on line 16

Fatal error: Uncaught Error: Call to a member function fetchAll() on bool in /home/u482956964/public_html/app/controller/blog-categories.php:17 Stack trace: #0 /home/u482956964/public_html/app/controller/blog.php(3): require() #1 /home/u482956964/public_html/index.php(35): require('/home/u48295696...') #2 {main} thrown in /home/u482956964/public_html/app/controller/blog-categories.php on line 17