Rare error, which is a problem?

Uploaded with ImageShack.us
Code:
[15/10/2012 2:19:6] Fgdfgd has logged out.
[15/10/2012 2:19:6] Captain Morgan's has logged in.
[15/10/2012 2:19:6] mysql_real_query(): UPDATE `players` SET `ip` = '200.83.188.247' WHERE name = 'Captain Morgan's'; - MYSQL ERROR: 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'' at line 1 (1064)
[15/10/2012 2:19:8] Gdfgd has logged in.
[15/10/2012 2:23:37] > Broadcasted messag

Uploaded with ImageShack.us