A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): (70100/1317): Query execution was interrupted

Filename: mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /home/peopless/public_html/peoplessamachar.in/application/models/Post_model.php
Line: 116
Function: query

File: /home/peopless/public_html/peoplessamachar.in/application/core/Core_Controller.php
Line: 148
Function: get_popular_posts

File: /home/peopless/public_html/peoplessamachar.in/application/controllers/Home_controller.php
Line: 8
Function: __construct

File: /home/peopless/public_html/peoplessamachar.in/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/peopless/public_html/peoplessamachar.in/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/peopless/public_html/peoplessamachar.in/application/models/Post_model.php
Line: 116
Function: query

File: /home/peopless/public_html/peoplessamachar.in/application/core/Core_Controller.php
Line: 148
Function: get_popular_posts

File: /home/peopless/public_html/peoplessamachar.in/application/controllers/Home_controller.php
Line: 8
Function: __construct

File: /home/peopless/public_html/peoplessamachar.in/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1317

Query execution was interrupted

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 30 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