Fixed playing time and capture query to fix sql syntax errors