A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Jewelry.php

Line Number: 56

Backtrace:

File: /var/www/html/site/app/modules/jewelry/controllers/Jewelry.php
Line: 56
Function: _error_handler

File: /var/www/html/site/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Jewelry.php

Line Number: 57

Backtrace:

File: /var/www/html/site/app/modules/jewelry/controllers/Jewelry.php
Line: 57
Function: _error_handler

File: /var/www/html/site/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 attribute.name REGEXP 'Style'' at line 3

SELECT DISTINCT(attribute_value.`value`) FROM `attribute_value` INNER JOIN attribute on attribute.attribute_id=attribute_value.attribute_id WHERE attribute.category_id= AND attribute.name REGEXP 'Style'

Filename: modules/jewelry/models/Jewelry_model.php

Line Number: 49