A PHP Error was encountered

Severity: Notice

Message: Undefined index: subcategory

Filename: controllers/Classified_ads.php

Line Number: 129

Backtrace:

File: /home/tecnews/public_html/takas/application/controllers/Classified_ads.php
Line: 129
Function: _error_handler

File: /home/tecnews/public_html/takas/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/tecnews/public_html/takas/application/controllers/Classified_ads.php
Line: 172
Function: query

File: /home/tecnews/public_html/takas/index.php
Line: 293
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 'Softwares AND classified_ads.area_id= 9 AND classified_ads.ad_cat= 'Sell⊂catid' at line 1

SELECT * FROM `classified_ads` JOIN `classified_category` ON `classified_ads`.`cat_id`=`classified_category`.`cat_id` JOIN `classified_sub_category` ON `classified_ads`.`sub_cat_id`=`classified_sub_category`.`sub_cat_id` JOIN `districts` ON `classified_ads`.`district_id`=`districts`.`district_id` JOIN `area` ON `classified_ads`.`area_id`=`area`.`area_id` WHERE `ad_status` = 1 AND `cat_status` = 1 AND `sub_cat_status` = 1 AND `dis_status` = 1 AND `area_status` = 1 AND classified_ads.sub_cat_id= 28⊂category=Online Softwares AND classified_ads.area_id= 9 AND classified_ads.ad_cat= 'Sell⊂catid=75⊂category=Cars' ORDER BY `ads_id` DESC LIMIT 0 , 25

Filename: controllers/Classified_ads.php

Line Number: 172