Fatal error: Uncaught mysqli_sql_exception: 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 'and f.id_empresa = and f.mes = and f.anio =' at line 1 in /home/com2cecposadasco/public_html/php/comprobante.php:99 Stack trace: #0 /home/com2cecposadasco/public_html/php/comprobante.php(99): mysqli_query(Object(mysqli), 'select f.id_emp...') #1 {main} thrown in /home/com2cecposadasco/public_html/php/comprobante.php on line 99