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: /usr/www/users/yelloewtfd/application/models/Site_model.php
Line: 1062
Function: query

File: /usr/www/users/yelloewtfd/application/controllers/Home.php
Line: 955
Function: get_featured_adverts

File: /usr/www/users/yelloewtfd/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): Error reading result set's header

Filename: mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /usr/www/users/yelloewtfd/application/models/Site_model.php
Line: 1062
Function: query

File: /usr/www/users/yelloewtfd/application/controllers/Home.php
Line: 955
Function: get_featured_adverts

File: /usr/www/users/yelloewtfd/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 /usr/www/users/yelloewtfd/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /usr/www/users/yelloewtfd/application/models/Site_model.php
Line: 1062
Function: query

File: /usr/www/users/yelloewtfd/application/controllers/Home.php
Line: 955
Function: get_featured_adverts

File: /usr/www/users/yelloewtfd/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT companies.id,logos.url as logo,adverts.url,companies.name,companies.about_us,companies.address,companies.telephone FROM adverts LEFT JOIN companies on adverts.company_id=companies.id LEFT JOIN logos on logos.company_id=companies.id order by rand() limit 4

Filename: models/Site_model.php

Line Number: 1062