Erro MySQL: 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 'and p.value=1 and v.id_attrib= 1' at line 1
select p.id_attribvalue, p.idt, p.tax from cms_products_attribsvalues_x p left join cms_products_attribsvalues v on p.id_attribvalue=v.idt where p.id_product= and p.value=1 and v.id_attrib= 1