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