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='151bb6c63226fe8fecf0799df7a3b06c'' at line 1