SELECT pp.ID_Producto FROM producto_promos AS pp LEFT JOIN promos AS p ON pp.ID_Promocion = p.ID WHERE p.Archivado = 0 AND (p.Desde <= CURDATE() AND p.Hasta >= CURDATE()) AND pp.ID_Producto =
Error: 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