inner join for orderForm
and correct some warnings