Error reason 1: SQL keyword conflict
Analysis: Example: Name desc as the field name
Error reason two: $right=$DB->fetch_one_array("SELECT rsnumber FROM ".$db_prefix."userright WHERE usertitle=".$usertitle"");
Analysis: .$usertitle. It should be expressed in this way and conflicts with the fields in the database. Just change it to the code in the picture above
(Note: My humble opinion, hope someone can add to it!)