So I'm fairly new to web development and I haven't really used php and mysql much before.
I was wanting to query my database to find out how many results had the same value for a certain field. I was thinking along the following lines:
SELECT value_a, COUNT(*)
FROM table_a
WHERE value_a = (SELECT DISTINCT value_a FROM table_a)
but obviously I can't have multiple values from my inner query. How could I do something like this?