A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Home.php

Line Number: 127

Backtrace:

File: /homepages/9/d176112581/htdocs/optionscorp/application/controllers/Home.php
Line: 127
Function: _error_handler

File: /homepages/9/d176112581/htdocs/optionscorp/application/controllers/Home.php
Line: 259
Function: getNearestBranch

File: /homepages/9/d176112581/htdocs/optionscorp/index.php
Line: 321
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/Home.php

Line Number: 260

Backtrace:

File: /homepages/9/d176112581/htdocs/optionscorp/application/controllers/Home.php
Line: 260
Function: _error_handler

File: /homepages/9/d176112581/htdocs/optionscorp/index.php
Line: 321
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /homepages/9/d176112581/htdocs/optionscorp/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /homepages/9/d176112581/htdocs/optionscorp/application/models/Content_Model.php
Line: 256
Function: get

File: /homepages/9/d176112581/htdocs/optionscorp/application/controllers/Home.php
Line: 275
Function: getLimitedWhereByJoin

File: /homepages/9/d176112581/htdocs/optionscorp/index.php
Line: 321
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY `quote_date` DESC LIMIT 2' at line 4

SELECT * FROM `testimonials` JOIN `states` ON `testimonials`.`state` = `states`.`state_id` WHERE `testimonials`.`type` = 1 AND `testimonials`.`id` NOT IN () ORDER BY `quote_date` DESC LIMIT 2

Filename: models/Content_Model.php

Line Number: 256