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