Hi i want to select the record with latest updated status using task_id as foreign key, I want this in Phpfox based query, but if can solve let me know the general query for this scnario
id task_id status
--------------------------
1 2 1
2 3 3
3 2 3
4 2 2 <------- select this record
5 4 1