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 'DESC
HAVING rating_number >= 4
ORDER BY average DESC
LIMIT 24' at line 4 in /var/www/canhack/includes/db.php:106
Stack trace:
#0 /var/www/canhack/includes/db.php(106): mysqli_query()
#1 /var/www/canhack/includes/functions_rate.php(470): sql_db->sql_query()
#2 /var/www/canhack/includes/functions_rate.php(645): top_rated_topics()
#3 /var/www/canhack/rate.php(91): ratings_large()
#4 {main}
thrown in /var/www/canhack/includes/db.php on line 106