SELECT WorkerId, MAX( `TimeStamp` ) AS TimeStamp, `Latitude` , `Longitude`
FROM `workers_actions`
JOIN worker_user w ON WorkerId = w.Id
WHERE `ScannedTimestamp` >= DATE( NOW( ) )
AND FarmerId=:farmer_id
AND Longitude is not null
AND Longitude != 0
AND Latitude is not null
AND Latitude != 0
GROUP BY WorkerId
Will i be getting Latitude
and Longitude
of the row with max timestamp or Is it not garaunteed?