Warning: Undefined variable $activefilter in /home/redhat/public_html/modules/agents/templates/view/agent-profile.php on line 42

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 '' at line 1 in /home/redhat/public_html/engine/mysql.php:977 Stack trace: #0 /home/redhat/public_html/engine/mysql.php(977): mysqli_query(Object(mysqli), 'SELECT * FROM r...') #1 /home/redhat/public_html/engine/functions.php(15): mysql_query('SELECT * FROM r...', Object(mysqli)) #2 /home/redhat/public_html/modules/agents/templates/view/agent-profile.php(42): querry('redhat_agents', '*', 'WHERE URL_NAME_...') #3 /home/redhat/public_html/modules/agents/agents.php(82): include('/home/redhat/pu...') #4 /home/redhat/public_html/engine/core.php(272): include('/home/redhat/pu...') #5 /home/redhat/public_html/index.php(8): include('/home/redhat/pu...') #6 {main} thrown in /home/redhat/public_html/engine/mysql.php on line 977