A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Homepagemodel.php

Line Number: 981

Backtrace:

File: /home/absoluteafrica/public_html/application/models/Homepagemodel.php
Line: 981
Function: _error_handler

File: /home/absoluteafrica/public_html/application/controllers/Homepage.php
Line: 661
Function: our_tours

File: /home/absoluteafrica/public_html/index.php
Line: 317
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/absoluteafrica/public_html/application/models/Homepagemodel.php
Line: 992
Function: query

File: /home/absoluteafrica/public_html/application/controllers/Homepage.php
Line: 661
Function: our_tours

File: /home/absoluteafrica/public_html/index.php
Line: 317
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 'AND tour_subcatid IN(SELECT tour_subcatid FROM tbl_packages WHERE status=1 ORDER' at line 1

SELECT * FROM tbl_toursubcategory WHERE tour_catid= AND tour_subcatid IN(SELECT tour_subcatid FROM tbl_packages WHERE status=1 ORDER BY tour_subcatid DESC)

Filename: models/Homepagemodel.php

Line Number: 992