You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1: UPDATE user_company SET usc_view_count = usc_view_count + 1 WHERE usc_id =