only log queryString if table is set

cast parameters to string before joining