A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): MySQL server has gone away

Filename: mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home/threesocieties/public_html/application/models/Poll_model.php
Line: 63
Function: query

File: /home/threesocieties/public_html/application/core/Core_Controller.php
Line: 186
Function: get_polls

File: /home/threesocieties/public_html/application/controllers/Home_controller.php
Line: 7
Function: __construct

File: /home/threesocieties/public_html/index.php
Line: 330
Function: require_once

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT polls.*,(SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option1') AS option1_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option2') AS option2_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option3') AS option3_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option4') AS option4_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option5') AS option5_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option6') AS option6_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option7') AS option7_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option8') AS option8_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option9') AS option9_vote_count, (SELECT COUNT(poll_votes.id) FROM poll_votes WHERE poll_votes.poll_id = polls.id AND poll_votes.vote = 'option10') AS option10_vote_count FROM polls WHERE polls.lang_id = 1 ORDER BY polls.id DESC

Filename: models/Poll_model.php

Line Number: 63

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('43b3d81a5d2b641a3882453f2d7b2e5a3793de03', '18.219.213.196', 1716329914, '__ci_last_regenerate|i:1716329906;')

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 237

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT RELEASE_LOCK('75d2d3aa8ebc976082539e24eca0af19') AS ci_session_lock

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 424