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