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