Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What was the highest amount of losses when there were 45 goals and the play was smaller than 38?

### Inputs:
table_name: table, columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']

### Response:
SELECT MAX Losses FROM table WHERE Goals for = 45 AND Played < 38