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 '* order by ranking' at line 1 in /home/elevatee/public_html/wp-panel/assets/include/fix_mysql_error.php:24
Stack trace:
#0 /home/elevatee/public_html/wp-panel/assets/include/fix_mysql_error.php(24): mysqli_query(Object(mysqli), 'SELECT wc_main ...')
#1 /home/elevatee/public_html/wp-panel/func.php(8): mysql_query('SELECT wc_main ...')
#2 /home/elevatee/public_html/wp-panel/fn_seo.php(1348): qry_run('SELECT wc_main ...')
#3 /home/elevatee/public_html/include/left_menu.php(7): getValuesM('*', 'wc_main', '', ' order by ranki...')
#4 /home/elevatee/public_html/sub_categories.php(24): include('/home/elevatee/...')
#5 {main}
thrown in /home/elevatee/public_html/wp-panel/assets/include/fix_mysql_error.php on line 24