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