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