Added alias for `previous_offences` in SQL query