This is my query
select *
from table
where a in (select a,b,count(*) from table where b= 99991231 group by 1,2 having count(*) > 1) ;
ERROR 4829: Subquery has too many columns
I want to select those values of a where b's value is 99991231 and is repeated more than one