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 'AND ( a.subdomainname = "" OR a.subdomainname IS NULL )' at line 12
Fatal error: Call to a member function fetch_assoc() on boolean in /var/www/html/demo_youportal/classes/sdba/sdba.php on line 655