I understand the error, I have no idea how to fix this. Maybe i wrote this wrong but I should have more then 1 count? I should have a count for each url? I want to only display urls and how many times it repeated when there is more then 1.
mysql> select count(*) as c, url from PageInfo where c>1 group by url;
ERROR 1054 (42S22): Unknown column 'c' in 'where clause'
I don’t know about mySQL but in MSSQL I would do
so the changes are change the
count(*)tocount(url)and move your filter in to thehavingclause (and putting an additional count there as you can’t reference the name in the select clause in the having clause).