A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Homepagemodel.php

Line Number: 995

Backtrace:

File: /home/absoluteafrica/domains/absoluteafricatours.com/public_html/application/models/Homepagemodel.php
Line: 995
Function: _error_handler

File: /home/absoluteafrica/domains/absoluteafricatours.com/public_html/application/controllers/Homepage.php
Line: 662
Function: our_tours

File: /home/absoluteafrica/domains/absoluteafricatours.com/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: 1006