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