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 '' at line 1

SELECT t.name from ps_product_tag pt inner join ps_tag t on t.id_tag = pt.id_tag where pt.id_product =