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