« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: mysql_query() expects parameter 2 to be resource, object given 
  Error type/ Nr.: Warning - 2 
  File: /home/np594/domains/aaestonia.com/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php 
  Line: 139 
  Line 139 source: if (!$result = @ mysql_query($sql, $this->conn)) {  
 
Parser timing
  MySQL: 0.0012 s(0 Requests)
  PHP: 0.0317 s 
  Total: 0.0329 s 
Error while inserting event log into database.