A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): (21000/1242): Subquery returns more than 1 row

Filename: mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /home/gmspjutv/ceylongemhub.com/application/models/Products_model.php
Line: 367
Function: query

File: /home/gmspjutv/ceylongemhub.com/application/controllers/Products.php
Line: 365
Function: datalayer

File: /home/gmspjutv/ceylongemhub.com/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/gmspjutv/ceylongemhub.com/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/gmspjutv/ceylongemhub.com/application/models/Products_model.php
Line: 367
Function: query

File: /home/gmspjutv/ceylongemhub.com/application/controllers/Products.php
Line: 365
Function: datalayer

File: /home/gmspjutv/ceylongemhub.com/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1242

Subquery returns more than 1 row

SELECT `category`.`name` as cat_name, `category`.`id` as cat_id,(SELECT item_has_sub_category.sub_category_id FROM item_has_sub_category WHERE item_has_sub_category.item_code='cgh917') as sub_id FROM `category` JOIN item_has_category ON category.id=item_has_category.category_id WHERE item_has_category.item_code='cgh917'

Filename: models/Products_model.php

Line Number: 367