A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): (HY000/2006): MySQL server has gone away

Filename: mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /home/dailybangladeshe/public_html/application/models/Post_model.php
Line: 94
Function: get

File: /home/dailybangladeshe/public_html/application/core/Core_Controller.php
Line: 131
Function: get_post_count_by_lang

File: /home/dailybangladeshe/public_html/application/controllers/Home_controller.php
Line: 8
Function: __construct

File: /home/dailybangladeshe/public_html/index.php
Line: 318
Function: require_once

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT `posts`.*, `categories`.`name` as `category_name`, `categories`.`color` as `category_color`, `users`.`username` as `username`, `users`.`slug` as `user_slug` FROM `posts` JOIN `users` ON `posts`.`user_id` = `users`.`id` JOIN `categories` ON `posts`.`category_id` = `categories`.`id` WHERE `posts`.`created_at` <= CURRENT_TIMESTAMP() AND `posts`.`visibility` = 1 AND `posts`.`status` = 1 AND `posts`.`lang_id` = '4'

Filename: models/Post_model.php

Line Number: 94