(
SELECT place.place FROM history
LEFT OUTER JOIN place ON place.id=history.id_place
WHERE
(history.id_numbercartridge=numbercartridge.id) AND
( date= (SELECT MAX(date) FROM history WHERE history.id_numbercartridge=numbercartridge.id) )
)
date= (SELECT MAX(date) FROM history WHERE history.id_numbercartridge=numbercartridge.id)