« 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 's', text = 'Wylogował się', room_id = '1', time = now()' at line 1 »
      SQL: insert into ch_dialogues set user_id = '893', user_nick = 'mario's', text = 'Wylogował się', room_id = '1', time = now()
      [Copy SQL to ClipBoard]
Parser timing
  MySQL: 0.3415 s(8 Requests)
  PHP: 0.6767 s 
  Total: 1.0182 s 
Error while inserting event log into database.