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