Mysql Count Group By Results, name) - it satisfies condition #2 on both versions of the query; it doesn't make problems.