You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY name ASC' at line 1
SELECT DISTINCT name, code_name FROM game WHERE id IN (2015,2015,20091,250,879,300,300,247,5950,312,2015,2015,20091,250,879,300,300,247,5950,312,2015,2015,20091,250,879,300,300,247,5950,312,2015,2015,20091,250,879,300,300,247,5950,312,2015,2015,20091,250,879,300,300,247,5950,312,2015,2015,20091,250,879,300,) ORDER BY name ASC