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='651b33ef4981c7a4b3769ab973c07a77'' at line 1