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