Auch! userIP was the variable name I used in my PHP script... the name of the column is 'ip'.... it works and out puts the name but when I tried to modify it to get the IP as well as the name I got the same error again..
$query = "SELECT name,ip count(ip) from sometable group by name,ip order by 2 desc";
Can you plz explain what the query does so perhaps I can figure out myself and understand what it is I'm doing here?
Thanks a lot,
Mc