Hi I was trying to create mysql statement that fit to my requirement.
2 tables as below
postTable
post_id | from_id
100 | 1
100 | 2
100 | 3
100 | 4
100 | 5
loveTable
post | uid
1 | 1
100 | 3
100 | 4
100 | 5
5 | 6
I want to select from_id from postTable where post_id=100 order by //uid that have post =100 in loveTable firstly.
Expecting result
from_id
3
4
5
1
2
Can you please advise me what is the right select statement?
SQL FIDDLE HERE.