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 'GROUP BY pt.pId HAVING COUNT(1) = 1)' at line 4 in /var/www/html/includes/public_functions.php:12 Stack trace: #0 /var/www/html/includes/public_functions.php(12): mysqli_query() #1 /var/www/html/includes/public_functions.php(36): getObjectPublishedPosts() #2 /var/www/html/filtered_posts.php(36): getObjectPublishedPostsByTopic() #3 {main} thrown in /var/www/html/includes/public_functions.php on line 12