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