You have an error in your SQL syntax near 'AND Content.rewrite = 'javascript'' at line 1