« 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 '' at line 1 »
      SQL: SELECT tv.*, IF(tvc.value!='',tvc.value,tv.default_text) as value FROM `arcpa_stjaxn`.`modx2_site_tmplvars` tv INNER JOIN `arcpa_stjaxn`.`modx2_site_tmplvar_templates` tvtpl ON tvtpl.tmplvarid = tv.id LEFT JOIN `arcpa_stjaxn`.`modx2_site_tmplvar_contentvalues` tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = '' WHERE tv.name IN ('encryption') AND tvtpl.templateid =
      [Copy SQL to ClipBoard]
 
Parser timing
  MySQL: 0.0059 s(0 Requests)
  PHP: 0.0501 s 
  Total: 0.0560 s