A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'wp_id' of non-object

Filename: controllers/Pages.php

Line Number: 121

Backtrace:

File: /data/web/www.jatektoys.hu/html/ci/application/controllers/Pages.php
Line: 121
Function: _error_handler

File: /data/web/www.jatektoys.hu/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'wp_id' of non-object

Filename: controllers/Pages.php

Line Number: 122

Backtrace:

File: /data/web/www.jatektoys.hu/html/ci/application/controllers/Pages.php
Line: 122
Function: _error_handler

File: /data/web/www.jatektoys.hu/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'wct_child_sef_name' of non-object

Filename: controllers/Pages.php

Line Number: 124

Backtrace:

File: /data/web/www.jatektoys.hu/html/ci/application/controllers/Pages.php
Line: 124
Function: _error_handler

File: /data/web/www.jatektoys.hu/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'wct_parent_sef_name' of non-object

Filename: controllers/Pages.php

Line Number: 124

Backtrace:

File: /data/web/www.jatektoys.hu/html/ci/application/controllers/Pages.php
Line: 124
Function: _error_handler

File: /data/web/www.jatektoys.hu/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 /data/web/www.jatektoys.hu/html/ci/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /data/web/www.jatektoys.hu/html/ci/application/models/PagesModel.php
Line: 910
Function: query

File: /data/web/www.jatektoys.hu/html/ci/application/controllers/Pages.php
Line: 124
Function: getSuggestedProducts

File: /data/web/www.jatektoys.hu/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 MariaDB server version for the right syntax to use near ')' at line 16

SELECT wp.id wp_id, wp.name_hun wp_name, IF(LENGTH(wp.name_hun) > 24, CONCAT(SUBSTRING(wp.name_hun, 1, 24), '...'), wp.name_hun) wp_name_short, wp.sef_link wp_sef_link, (SELECT wct.sef_name FROM wshp_category_tree wct, wshp_product_category_tree wpct WHERE wpct.product = wp.id AND wpct.category_tree = wct.id AND wpct.is_active = 1 AND wct.is_active = 1 ORDER BY wct.parent DESC LIMIT 1) AS wct_sef_name, wp.in_store wp_in_store, wp.price_action wp_price_action, wp.is_action wp_is_action, wp.is_outofstock wp_is_outofstock, datediff(action_end, curdate()) action_expired, IFNULL((SELECT wpi.file_name FROM wshp_product_image wpi WHERE wpi.product = wp.id AND wpi.is_active = 1 ORDER BY weight LIMIT 1), 'noimage.jpg') wpi_file_name, IFNULL((SELECT wpi.width FROM wshp_product_image wpi WHERE wpi.product = wp.id AND wpi.is_active = 1 ORDER BY weight LIMIT 1), 134) wpi_width, IFNULL((SELECT wpi.height FROM wshp_product_image wpi WHERE wpi.product = wp.id AND wpi.is_active = 1 ORDER BY weight LIMIT 1), 134) wpi_height, datediff(curdate(), wp.uploaded) wp_uploaded_days FROM wshp_product wp WHERE wp.id IN ()

Filename: models/PagesModel.php

Line Number: 910