Updated how the query to get workouts by user id works so that it puts
the parameters in the query correctly.