Please allow me to as a stupid question again.
It is really hard for me to call query mysql from both tables.
post_table
PostID | UID_frm
10 | 1
10 | 2
10 | 3
10 | 4
10 | 5
user_table
Name | FID
tom | 2
tom | 3
henry | 4
I want to have this below as result.
UID_frm
2
3
1
4
5
It is the result from column UID_frm but priority order by user_table.FID.
Please advise I want to call like this:(but doesn’t work)
select UID_frm
from post_table
where PostID='10'
order by (select FID
from user_table
where Name='tom')
I think this is what you are looking for: