You can also write the SQL query this way, and achieve the same thing as the OR:
SELECT
ID,
Name
FROM USERS
WHERE Name IN('BoBo','Pete')
The result of this could then be processed through PHP to put it in the format from your example.
I'm starting to sound very "Johnny One-Note" here..🙂
Good luck!