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 'table AND p.category_id = c.category_id' at line 3

SELECT c.category_id, c.category_name, c.category_description FROM categories c, products p WHERE p.product_id = sheffield-dining-table AND p.category_id = c.category_id

Filename: /home/zrrkarmzmw1z/public_html/models/products_model.php

Line Number: 141