Fixed html character causing query to not execute