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 'as country_name from tps_master_country where main_country = '1' ' at line 1 Fatal error: Call to a member function Close() on a non-object in /home/wendyadmin/www/htdocs/lib/common_lib.php on line 153