SQL : Prevent duplicate values in LEFT JOIN