Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ELSE 0 END) as detractors,
ROUND((SUM(CASE WHEN f.sentiment ...' at line 7 in /home/pp254/public_html/v1/reports.php:122
Stack trace:
#0 /home/pp254/public_html/v1/reports.php(122): PDOStatement->execute()
#1 {main}
thrown in /home/pp254/public_html/v1/reports.php on line 122