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