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