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