A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/booking.php

Line Number: 239

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/booking.php

Line Number: 273

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/choowap/public_html/system/libraries/Exceptions.php:166)

Filename: codeigniter/Common.php

Line Number: 356

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 addi.aff_status = 1 AND cat.lang_id = 5 AND cat.category = 'nearby' at line 6

SELECT cat.term,cat.url,cat.term_category_id,count(cat.term_category_id) as num_cat FROM tbl_term_relationship rel JOIN tbl_hotel_addi addi ON addi.addi_id = rel.object_id JOIN tbl_term_category cat ON cat.term_category_id = rel.term_category_id WHERE addi.urll_id = AND addi.aff_status = 1 AND cat.lang_id = 5 AND cat.category = 'nearby' AND (addi.expire_date > 1490633522 OR addi.sel_price != 'TT') GROUP BY cat.term_category_id