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 'categories_description cd where cd.categories_id = ptc.categories_id' at line 1

select p.products_id, ptc.products_id, ptc.categories_id, cd.categories_id, cd.categories_name from products p, products_to_categories ptc where ptc.products_id = p.products_id categories_description cd where cd.categories_id = ptc.categories_id

[TEP STOP]