Ma le 17 a prescindere dal giorno? Se sì

codice:
select * from tabella
where date_format(campo,"%H") = 17