SELECT LEFT(http_referer, LOCATE('/',http_referer,9)-1) as URL, COUNT(*) as ANTAL FROM hits_outside GROUP BY URL ORDER BY ANTAL DESC;