A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/All_ads.php

Line Number: 224

Backtrace:

File: /home/oslers/public_html/application/modules/all_ads/controllers/All_ads.php
Line: 224
Function: _error_handler

File: /home/oslers/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/All_ads.php

Line Number: 225

Backtrace:

File: /home/oslers/public_html/application/modules/all_ads/controllers/All_ads.php
Line: 225
Function: _error_handler

File: /home/oslers/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/oslers/public_html/application/modules/ads/models/Ads_model.php
Line: 176
Function: get

File: /home/oslers/public_html/application/modules/all_ads/controllers/All_ads.php
Line: 228
Function: ads_filter

File: /home/oslers/public_html/index.php
Line: 315
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 `ads`.`add_condition` >=0 AND `ads`.`status` != 2 AND ads.created_at LIKE"20' at line 4

SELECT *, `ads`.`id` as `a_id` FROM `ads` LEFT JOIN `area` ON `area`.`area_id`=`ads`.`area_id` WHERE (`ads`.`status` = 1 AND `ads`.`subcategory_id` = AND `ads`.`add_condition` >=0 AND `ads`.`status` != 2 AND ads.created_at LIKE"2019%") ORDER BY `ads`.`created_at` DESC

Filename: modules/ads/models/Ads_model.php

Line Number: 176