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 'AND basketSession='b930077334f85fa2246fe04cf0fc09dc'' at line 1