A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): (HY000/3024): Query execution was interrupted, maximum statement execution time exceeded

Filename: mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /home/elibrary/public_html/application/core/MY_Model.php
Line: 184
Function: get

File: /home/elibrary/public_html/application/models/Book_model.php
Line: 880
Function: get_rows

File: /home/elibrary/public_html/application/models/Book_model.php
Line: 841
Function: get_book_counts

File: /home/elibrary/public_html/application/controllers/Books.php
Line: 802
Function: book_search

File: /home/elibrary/public_html/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 3024

Query execution was interrupted, maximum statement execution time exceeded

SELECT COUNT(DISTINCT(b_downloads.id)) as book_downloads, COUNT(DISTINCT(b_wishlist.id)) as book_wishlist, COUNT(DISTINCT(b_readlist.id)) as book_readlist, (COUNT(DISTINCT(b_downloads.id)) + COUNT(DISTINCT(b_wishlist.id))) as popular_count, COUNT(DISTINCT(b_read.id)) as book_read, `angel_book`.`id` FROM `angel_book` LEFT JOIN `angel_book_download` as `b_downloads` ON `b_downloads`.`book_id` = `angel_book`.`id` LEFT JOIN `angel_wishlist` as `b_wishlist` ON `b_wishlist`.`book_id` = `angel_book`.`id` LEFT JOIN `angel_readlist` as `b_readlist` ON `b_readlist`.`book_id` = `angel_book`.`id` LEFT JOIN `angel_book_read` as `b_read` ON `b_read`.`book_id` = `angel_book`.`id` WHERE `angel_book`.`id` IN('2') GROUP BY `angel_book`.`id`

Filename: core/MY_Model.php

Line Number: 184