Severity: Warning
Message: mysqli::query(): (08S01/1053): Server shutdown in progress
Filename: mysqli/mysqli_driver.php
Line Number: 307
Backtrace:
File: /home/ebooki8/public_html/mag/mag/application/models/Post_model.php
Line: 131
Function: query
File: /home/ebooki8/public_html/mag/mag/application/core/Core_Controller.php
Line: 157
Function: get_popular_posts
File: /home/ebooki8/public_html/mag/mag/application/controllers/Home_controller.php
Line: 8
Function: __construct
File: /home/ebooki8/public_html/mag/mag/index.php
Line: 325
Function: require_once
Error Number: 1053
Server shutdown in progress
SELECT posts.id, posts.title, posts.title_slug, posts.post_type, posts.image_small, posts.image_mime, 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 '365' 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.is_scheduled = 0 AND posts.status = 1 AND posts.lang_id = '2' ORDER BY hit_counts.count DESC LIMIT 5
Filename: models/Post_model.php
Line Number: 131