My SQL table is like the following
╔══════════╦═════════════════╦═════════╦════════════╦═══════╗
║ username ║ expiration_date ║ item_id ║ item_price ║ cents ║
╠══════════╬═════════════════╬═════════╬════════════╬═══════╣
║ joe      ║      1313446093 ║      10 ║          0 ║     1 ║
║ james    ║      1324242242 ║      11 ║          0 ║     1 ║
║ Sarah    ║      1324552599 ║      10 ║          0 ║     1 ║
╚══════════╩═════════════════╩═════════╩════════════╩═══════╝
and what I have so far for my sql query is variable $sql receives
SELECT expiration_date, item_price 
FROM list 
WHERE expiration_date > '$current_time'
and from the example table above, I would get two results back for item_id = 10. However, I only wish to receive the latest one, in this case Sarah's row. How do I code so that only the latest of the same item_id type is returned during each query.
 
     
     
     
     
    