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