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 'AND YEAR(FAR.Fecha_Factura)= AND P.Id_Categoria IN (12,8,9,3,5,10) GROUP by P.Co' at line 17 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\n MONT...')
#1 /home/sigesaf/public_html/class/class.consulta.php(66): consulta->connect()
#2 /home/sigesaf/public_html/php/reporte_sismed/reporte_sismed_plano_compra.php(45): consulta->getData()
#3 {main}
thrown in /home/sigesaf/public_html/class/class.consulta.php on line 17