« 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 'ad') ? 1 '' at line 1 »
      SQL: SELECT snippet FROM redomeuk_eat_dont_hula.`redo_site_snippets` WHERE redomeuk_eat_dont_hula.`redo_site_snippets`.name='phx: (orb.fig('ad') ? 1 ';
      [Copy SQL to ClipBoard]
Parser timing
  MySQL: 0.0558 s(26 Requests)
  PHP: 1.4002 s 
  Total: 1.4560 s