Hi @NialC ,
There are number of ways through which you can achieve this:
1) Schedule your workflow to run on 1st of every month and then use a month ago in the query.
2) In Query activity, do
Month(@contactDate) = Month(GetDate) -1 and
Year(@contactDate)=Year(GetDate)
Thanks,
Jyoti