A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product.php

Line Number: 35

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 'ORDER BY products.product_order ASC, product_id' at line 1

SELECT * FROM products LEFT JOIN categories on categories.category_id=products.category_id WHERE categories.seo_url='kafsimes-iles' AND product_id <> ORDER BY products.product_order ASC, product_id

Filename: /var/www/vhosts/ecopellet-hellas.gr/httpdocs/models/products_model.php

Line Number: 16