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(F1.Fecha_Documento)='' AND F1.Tipo!="Homologo" ORDER BY PF1.Precio DESC' at line 5 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 MONTH(F...')
#1 /home/sigesaf/public_html/class/class.consulta.php(66): consulta->connect()
#2 /home/sigesaf/public_html/php/reporte_sismed/reporte_sismed_plano.php(72): consulta->getData()
#3 {main}
thrown in /home/sigesaf/public_html/class/class.consulta.php on line 17