human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Player, Club, League, Play-offs, FA Cup, FA Trophy, Total
###Question: What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?
gpt
SELECT AVG Total FROM table WHERE League = 18 AND Player = richard logan AND Play-offs < 1