Fatal error: Uncaught mysqli_sql_exception: 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 '),0) as Kilos, IFNULL((SELECT ROUND(SUM(PIFP.Peso),2) FROM Producto_Inventari' at line 6 in /home/sigesaf/public_html/class/class.consulta.php:17 Stack trace: #0 /home/sigesaf/public_html/class/class.consulta.php(17): mysqli_query(Object(mysqli), 'SELECT P.Id_Pro...') #1 /home/sigesaf/public_html/class/class.consulta.php(66): consulta->connect() #2 /home/sigesaf/public_html/php/cuadre_inventario.php(66): consulta->getData() #3 {main} thrown in /home/sigesaf/public_html/class/class.consulta.php on line 17