If SQL select can't find this data, can you set a default value for it?

for example,
select name from user where id in (1Magne2, id 3, 4, 5)
if there are only users in the user table whose id is 1, it will only return 2 names
I hope it will return several names if it cannot be found, and set it to a fixed value. If it can be set to the data associated with other tables, it is better.

Sql
Aug.18,2021

this logic can be processed in the program.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45c76-4388b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45c76-4388b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?