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 'force FROM `friends` where `force` > '0' and `reftype` = 'friend' order by `forc' at line 1