Fixing starring when the query is already escaped.