A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Search.php

Line Number: 174

Backtrace:

File: /home/ziyush/public_html/apps/controllers/Search.php
Line: 174
Function: _error_handler

File: /home/ziyush/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/ziyush/public_html/apps/models/Search_model.php
Line: 133
Function: get_where

File: /home/ziyush/public_html/apps/controllers/Search.php
Line: 217
Function: filterAds

File: /home/ziyush/public_html/index.php
Line: 319
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 'OR `subcatid` =) AND `city` = 'India' ORDER BY `id` DESC' at line 4

SELECT `id` FROM `ad_post` WHERE `status` = 1 AND (`category_id` = OR `subcatid` =) AND `city` = 'India' ORDER BY `id` DESC

Filename: models/Search_model.php

Line Number: 133