I'm having a problem while doing a mysql query. I want to select the id and name of all the presents, except those that are already in the reservation table.
SELECT DISTINCT
tb_presentes.id_presente AS value_id,
tb_presentes.nome AS label
FROM
tb_presentes
INNER JOIN
tb_reserva
ON
tb_presentes.id_presente <> tb_reserva.id_presente
WHERE
tb_presentes.id_cat_presente = 2
ORDER BY
value_id