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