Severity: Warning
Message: mysqli::query(): MySQL server has gone away
Filename: mysqli/mysqli_driver.php
Line Number: 305
Backtrace:
File: /home/mediamakkal/public_html/application/models/Post_model.php
Line: 116
Function: query
File: /home/mediamakkal/public_html/application/core/Core_Controller.php
Line: 147
Function: get_popular_posts
File: /home/mediamakkal/public_html/application/controllers/Home_controller.php
Line: 8
Function: __construct
File: /home/mediamakkal/public_html/index.php
Line: 315
Function: require_once
Error Number: 2006
MySQL server has gone away
SELECT posts.id, posts.title, posts.title_slug, posts.post_type, posts.image_small, posts.image_url, users.slug AS user_slug, users.username AS username, posts.created_at, hit_counts.count AS hit FROM posts INNER JOIN (SELECT COUNT(post_hits.post_id) AS count, post_hits.post_id FROM post_hits WHERE post_hits.created_at > DATE_SUB(NOW(), INTERVAL 7 DAY) GROUP BY post_hits.post_id) AS hit_counts ON hit_counts.post_id = posts.id INNER JOIN users ON users.id = posts.user_id INNER JOIN categories ON categories.id = posts.category_id WHERE posts.created_at <= CURRENT_TIMESTAMP() AND posts.status = 1 AND posts.lang_id = '1' ORDER BY hit_counts.count DESC LIMIT 5
Filename: models/Post_model.php
Line Number: 116