A PHP Error was encountered

Severity: Notice

Message: Undefined variable: product_value

Filename: controllers/flooring.php

Line Number: 1305

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: product_value

Filename: controllers/flooring.php

Line Number: 1306

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/flooring.php

Line Number: 1306

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: product_value

Filename: controllers/flooring.php

Line Number: 1306

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/flooring.php

Line Number: 1306

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: product_value

Filename: controllers/flooring.php

Line Number: 1309

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/flooring.php

Line Number: 1309

Database Error

An Error Was Encountered

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 p.id!=420 order by rand() limit 2' at line 1

select c.type as sub_cat, p.* from products p join category c on p.category_id=c.id where p.enabled=1 and p.sold_out='N' and c.id= and p.id!=420 order by rand() limit 2