A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/ShoppingCard.php

Line Number: 54

Backtrace:

File: /home2/honz1/public_html/application/controllers/ShoppingCard.php
Line: 54
Function: _error_handler

File: /home2/honz1/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home2/honz1/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home2/honz1/public_html/application/controllers/ShoppingCard.php
Line: 58
Function: query

File: /home2/honz1/public_html/index.php
Line: 292
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 ') GROUP by p.id' at line 1

SELECT p.id as id,p.name as product_name,p.description,p.link_jomia as video,p.cat_id,p.price ,group_concat(g.name) as images , group_concat(g.id) images_ids , p.features FROM `product` p inner JOIN `gallary` g on p.id = g.product_id where p.id in () GROUP by p.id

Filename: controllers/ShoppingCard.php

Line Number: 58