Try following query:
select *
from KM_MAST_GROUP
where CREATED_BY !~ '[0-9]+';
It will give you all rows, where CREATED_BY
is not a number. Fix such rows, and your query will work.
Other way is to use strings instead of integers.
SELECT GROUP_ID
FROM KM_MAST_GROUP
WHERE CREATED_BY = '4629';