I would presume in your data set you have some zeroes and/or negative
numbers. Remove the summary aspect of your query so you are getting all of
the records with the Log values. Do any show #Error in the Log(columnname)
column? If so, that is your problem. Eliminate them with an appropriate
condition of columnname > 0.