human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Position, Club, Played, Points, Wins, Draws, Losses, Goals for, Goals against, Goal Difference
###Question: Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23?
gpt
SELECT MAX Position FROM table WHERE Goals against < 54 AND Losses = 7 AND Goal Difference > 23