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='3faedff33dd907c95d4c6e03f56d3875'' at line 1