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