Example:
SELECT `film_id`,COUNT(film_id) AS COUNT FROM films_genres AS FilmsGenre
WHERE genre_id In (4)
GROUP BY film_id,COUNT
HAVING COUNT = 1
return:
film_id | COUNT
7 1
6 1
But I want it to return:
film_id
7
6
How do I return only 1 colomn?