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 ')' at line 1 in /home/planbtlpharma/public_html/sistema/dashboard_cumpl.php:167 Stack trace: #0 /home/planbtlpharma/public_html/sistema/dashboard_cumpl.php(167): mysqli->query('SELECT CASE WHE...') #1 {main} thrown in /home/planbtlpharma/public_html/sistema/dashboard_cumpl.php on line 167