This query works:

PHP Code:
$result mysql_result(mysql_query("SELECT COUNT(Name)
FROM gz_mammals
WHERE Name = '
$MyURL'"),0); 
How do I modify it so it counts TWO fields? The following query doesn't work...

PHP Code:
$result mysql_result(mysql_query("SELECT COUNT(Name, NameCommon)
FROM gz_mammals
WHERE Name = '
$MyURL' OR NameCommon = '$MyURL'"),0); 
However, it works if I replace "Name, NameCommon" with an asterisk.

Thanks.