Notice: Undefined variable: link in /home/badgirl/public_html/includes/functions.php on line 53

Fatal error: Uncaught Error: Call to a member function query() on null in /home/badgirl/public_html/includes/functions.php:53 Stack trace: #0 /home/badgirl/public_html/frontend/default/contents/blog-content.php(35): postsCateg('1') #1 /home/badgirl/public_html/frontend/default/layouts/default-layout.php(248): include('/home/badgirl/p...') #2 /home/badgirl/public_html/page-controller.php(122): include('/home/badgirl/p...') #3 /home/badgirl/public_html/index.php(27): require_once('/home/badgirl/p...') #4 /home/badgirl/public_html/router.php(557): include('/home/badgirl/p...') #5 {main} thrown in /home/badgirl/public_html/includes/functions.php on line 53