WHERE IN
не устраивает?SELECT `name` FROM `user` WHERE `id` IN (1,2,3,4,5);
In the WHERE expression, you can use any of the functions and operators that MySQL supports, except for aggregate (summary) functions. See Section 9.5, “Expression Syntax”, and Chapter 12, Functions and Operators.
SELECT name FROM user WHERE id = '1' OR id = '2' OR id = '3' OR id = '4' OR id ='5'