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 'OR tp.id_catorigen=0) AND tpd.categoria_seo="teak-eta-infusioak" AND tpd.id_idio' at line 4

SELECT tpd.id_categoria FROM categorias_productos tp INNER JOIN categorias_productos_desc tpd ON tp.id_categoria = tpd.id_categoria WHERE (tp.id_catorigen= OR tp.id_catorigen=0) AND tpd.categoria_seo="teak-eta-infusioak" AND tpd.id_idioma=1

[TEP STOP]