I have the following MySQL statement that returns a list of user_id's
SELECT user_id FROM user_links WHERE linked_user_id='1234'
The user_id never contains the linked_user_id that I use in the where clause. So I want to always add the from clause "linked_user_id" in the result but also want to sort by the user_id ASC.
Is there a way to do this in the MySQL statement itself or do I have to do this with some other scripting?