A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Shop.php

Line Number: 156

Backtrace:

File: /home/themez/application/controllers/Shop.php
Line: 156
Function: _error_handler

File: /home/themez/application/controllers/Shop.php
Line: 69
Function: index

File: /home/themez/public_html/index.php
Line: 310
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/themez/bonfire/ci3/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 577

Backtrace:

File: /home/themez/application/models/General_model.php
Line: 181
Function: query

File: /home/themez/application/controllers/Shop.php
Line: 157
Function: get_all_querystring_result

File: /home/themez/application/controllers/Shop.php
Line: 69
Function: index

File: /home/themez/public_html/index.php
Line: 310
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 MariaDB server version for the right syntax to use near '' at line 3

SELECT DISTINCT s.`category_id`, c.`name` FROM`bf_products` s INNER JOIN `bf_product_categories` c ON c.`category_id` = s.`category_id` WHERE s.`shop_id`=

Filename: models/General_model.php

Line Number: 181