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