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