SQL:='select * from '+table+' o JOIN customers c ON c.CUSTOMER_ID = o.COMPANY_ID where ORDER_ID = '+quotedStr(orderID);
SQL:='select * from corrugated_plate_orders cpo JOIN customers c ON c.CUSTOMER_ID = cpo.COMPANY_ID join orders o on cpo.ORDER_ID = o.ORDER_ID where cpo.ORDER_ID = '+quotedStr(orderID);