A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Site::SubCategoryProduct()

Filename: controllers/Site.php

Line Number: 113

Backtrace:

File: /home/admintumarket/public_html/application/controllers/Site.php
Line: 113
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id_sub_category

Filename: controllers/Site.php

Line Number: 115

Backtrace:

File: /home/admintumarket/public_html/application/controllers/Site.php
Line: 115
Function: _error_handler

File: /home/admintumarket/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/admintumarket/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/admintumarket/public_html/application/models/Site_model.php
Line: 801
Function: query

File: /home/admintumarket/public_html/application/controllers/Site.php
Line: 115
Function: get_products_sub_category

File: /home/admintumarket/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 price_products.visible = true and products.status = 'A' and sub_category.vis' at line 1

SELECT products.*, price_products.price, price_products.prime_prime, sub_category.name as subCategoryName, sub_category.id as idSubCategory FROM products inner join category_sub_products on category_sub_products.id_products = products.id inner join sub_category on sub_category.id = category_sub_products.id_sub_category inner join price_products on price_products.id_products = products.id where category_sub_products.id_sub_category = and price_products.visible = true and products.status = 'A' and sub_category.visible = true limit 96;

Filename: models/Site_model.php

Line Number: 801