function customerdb_getcountry(){ $sql="SELECT DISTINCT code, FROM country ORDER BY code"; $results=sql($sql, "getAll"); return $results; --------------------------------------------------------------------- //country echo "\n"; echo "Country\n"; echo "Country (You must have a country tied to the account)\n"; echo "\n"; $countrys=customerdb_getcountry(); echo "  \n"; echo "\n"; ------------------------------------------------------------------ SELECT DISTINCT code, FROM country ORDER BY code [nativecode=1064 ** 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 'FROM country ORDER BY code' at line 1]