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