I think you're inconsistently using back ticks through-out (e.g., see query_sequence and score_only here). I think all of the literals should be enclosed in backticks.