add the table prefix to the get match details query