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 'then 1 END) count_id FROM lp_health_promoting_hospital hph LEFT ...' at line 2 in E:\xampp\htdocs\DOPH\doph_system\main\classes\function.php:622 Stack trace: #0 E:\xampp\htdocs\DOPH\doph_system\main\classes\function.php(622): mysqli->query('SELECT hph.*, u...') #1 E:\xampp\htdocs\DOPH\doph_system\main\pages\activity_hph_all.php(21): Functions->get_hph_dashboard('') #2 {main} thrown in E:\xampp\htdocs\DOPH\doph_system\main\classes\function.php on line 622