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