Solved.
@refresh
Is there in SQL something like GROUP BY + WHERE STATEMENT?
Of course
how it should presents in the code?
http://dev.mysql.com/doc/