Error description: 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 '' at line 1
SELECT (select valor_bruto from listas_productos where lista_id = 1 and sku = pd.sku) as lista_cliente, (select valor_bruto from listas_productos where lista_id = 2 and sku = pd.sku) as lista_descuento FROM productos_detalles pd WHERE pd.id =