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='873b5191d77644d389cdfdf7eda0ac35'' at line 1