« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if (!window.locator.routes.search) window.locator.routes.search '' at line 1 »
      SQL: SELECT snippet FROM `redomeuk_eatdonthula`.`redo_site_snippets` WHERE `redomeuk_eatdonthula`.`redo_site_snippets`.name='phx:lang.json'; if (!window.locator.routes.search) window.locator.routes.search ';
      [Copy SQL to ClipBoard]
 
Parser timing
  MySQL: 0.0030 s(3 Requests)
  PHP: 0.1179 s 
  Total: 0.1210 s