You can also use same query, just by adding one extra layer of select before subquery. and that's it. It will work.
select * from test
where code_ver IN (select * from (select DISTINCT code_ver
from test
where code_ver NOT LIKE '%DevBld%'
ORDER by date DESC LIMIT 10) as t1);