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