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